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 /chaos-at-home | |
parent | fix vm install role (cook vm_host variable) (diff) |
fix vm install variable cooking once more
Diffstat (limited to 'chaos-at-home')
-rw-r--r-- | chaos-at-home/cloud-install.yml | 2 | ||||
-rw-r--r-- | chaos-at-home/usb-install.yml | 2 | ||||
-rw-r--r-- | chaos-at-home/vm-install.yml | 9 |
3 files changed, 10 insertions, 3 deletions
diff --git a/chaos-at-home/cloud-install.yml b/chaos-at-home/cloud-install.yml index 167cf458..31c757a1 100644 --- a/chaos-at-home/cloud-install.yml +++ b/chaos-at-home/cloud-install.yml @@ -1,5 +1,5 @@ --- -- name: setup variables +- name: cook variables for host hosts: "{{ install_hostname }}" gather_facts: no tasks: diff --git a/chaos-at-home/usb-install.yml b/chaos-at-home/usb-install.yml index ab455ff7..04bf2594 100644 --- a/chaos-at-home/usb-install.yml +++ b/chaos-at-home/usb-install.yml @@ -1,5 +1,5 @@ --- -- name: setup variables +- name: cook variables for host hosts: "{{ install_hostname }}" gather_facts: no tasks: diff --git a/chaos-at-home/vm-install.yml b/chaos-at-home/vm-install.yml index 7ca11b58..4d42946f 100644 --- a/chaos-at-home/vm-install.yml +++ b/chaos-at-home/vm-install.yml @@ -1,5 +1,5 @@ --- -- name: setup variables +- name: cook variables for guest hosts: "{{ install_hostname }}" gather_facts: no tasks: @@ -8,4 +8,11 @@ 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 |