diff options
author | Christian Pointner <equinox@spreadspace.org> | 2020-06-07 16:46:53 +0200 |
---|---|---|
committer | Christian Pointner <equinox@spreadspace.org> | 2020-06-07 16:46:53 +0200 |
commit | fbca1591e68a1223719c177be4750c3bb5a88177 (patch) | |
tree | 99b38e820ae493200021f1a4c959d18856204b58 /dan/vm-install.yml | |
parent | fix vm install role (cook vm_host variable) (diff) |
fix vm install variable cooking once more
Diffstat (limited to 'dan/vm-install.yml')
-rw-r--r-- | dan/vm-install.yml | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/dan/vm-install.yml b/dan/vm-install.yml index 405e14db..4d42946f 100644 --- a/dan/vm-install.yml +++ b/dan/vm-install.yml @@ -1,10 +1,18 @@ --- -- name: setup variables +- name: cook variables for guest hosts: "{{ install_hostname }}" gather_facts: no tasks: - set_fact: install_cooked: "{{ install }}" network_cooked: "{{ network }}" + vm_host_cooked: "{{ vm_host }}" + +- name: cook variables for host + hosts: "{{ hostvars[install_hostname].vm_host }}" + gather_facts: no + tasks: + - set_fact: + vm_host_cooked: "{{ vm_host }}" - import_playbook: ../common/vm-install.yml |