aboutsummaryrefslogtreecommitdiffstats
path: root/roles/bhyve
diff options
context:
space:
mode:
authorbinary <me@rgoncalves.se>2021-03-02 16:23:10 +0100
committerbinary <me@rgoncalves.se>2021-03-02 16:23:10 +0100
commit7c321cb7503c7d499f6e890ba039165775f0b5c5 (patch)
tree3ac3d630ab4379be7aa0b8c33e9779a5ce50c756 /roles/bhyve
parent67905becbee4c279c70d3f964b541a2933bf8846 (diff)
downloadinfrastructure-7c321cb7503c7d499f6e890ba039165775f0b5c5.tar.gz
Set_fact tasks is cleaner on top of file
Diffstat (limited to 'roles/bhyve')
-rw-r--r--roles/bhyve/tasks/main.yml6
1 files changed, 3 insertions, 3 deletions
diff --git a/roles/bhyve/tasks/main.yml b/roles/bhyve/tasks/main.yml
index 1b7470f..03d2d96 100644
--- a/roles/bhyve/tasks/main.yml
+++ b/roles/bhyve/tasks/main.yml
@@ -4,6 +4,9 @@
---
+- name: retrieve all valid vms
+ set_fact: valid_vms="{% for vm in vms %}{{ vm.name }} {% endfor %}"
+
- name: create bhyve group
group:
name: bhyve
@@ -37,9 +40,6 @@
- grub2-bhyve
- devcpu-data
-- name: retrieve all valid vms
- set_fact: valid_vms="{% for vm in vms %}{{ vm.name }} {% endfor %}"
-
- name: enable bhyve vm
shell: |
sysrc vm_enable="YES"
remember that computers suck.