From 7c321cb7503c7d499f6e890ba039165775f0b5c5 Mon Sep 17 00:00:00 2001 From: binary Date: Tue, 2 Mar 2021 16:23:10 +0100 Subject: Set_fact tasks is cleaner on top of file --- roles/bhyve/tasks/main.yml | 6 +++--- 1 file 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" -- cgit v1.2.3