X-Git-Url: https://git.realraum.at/?a=blobdiff_plain;f=ansible%2Fvm-install.yml;h=c244aa95f4689cd073e1a8d3a647b2b3c1628525;hb=HEAD;hp=9e7f055e73754bd7bc58e4ce1a23f5d6996b951c;hpb=cafce182458f3ead9b106bfc377cb7215eae2a04;p=noc.git diff --git a/ansible/vm-install.yml b/ansible/vm-install.yml index 9e7f055..c244aa9 100644 --- a/ansible/vm-install.yml +++ b/ansible/vm-install.yml @@ -5,11 +5,11 @@ tasks: - name: setup variables set_fact: - vm_network_cooked: "{{ vm_network }}" - vm_install_cooked: "{{ vm_install }}" + network_cooked: "{{ network }}" + install_cooked: "{{ install }}" - name: create temporary host group for vm host add_host: - name: "{{ vm_install.host }}" + name: "{{ vm_host }}" inventory_dir: "{{inventory_dir}}" group: _vmhost_ # TODO: add some sanity checks @@ -39,6 +39,9 @@ - name: Apply VM configuration roles hosts: "{{ hostname }}" + pre_tasks: + - name: make sure to update cached facts + setup: roles: - role: vm/grub - role: vm/network