From 94a5911577bd4e29338956a9f8ef76642049819f Mon Sep 17 00:00:00 2001 From: Kevin Fenzi Date: Mon, 14 Aug 2023 14:10:16 -0700 Subject: [PATCH] vhost_reboot: update for newer syntax Signed-off-by: Kevin Fenzi --- playbooks/vhost_reboot.yml | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/playbooks/vhost_reboot.yml b/playbooks/vhost_reboot.yml index 6cd0a7a06a..3fd1c7c40b 100644 --- a/playbooks/vhost_reboot.yml +++ b/playbooks/vhost_reboot.yml @@ -34,7 +34,8 @@ with_items: "{{ vmlist.list_vms }}" # Call out to another playbook. Disable any proxies that may live here -- import_playbook: update-proxy-dns.yml +- name: update proxy dns if needed + import_playbook: update-proxy-dns.yml vars: status: enable proxies: myvms_new:&proxies @@ -149,16 +150,13 @@ when: inventory_hostname.startswith('rabbitmq') # Call out to that dns playbook. Put proxies back in now that they're back -- import_playbook: update-proxy-dns.yml +- name: update proxy dns if needed + import_playbook: update-proxy-dns.yml vars: status: enable proxies: myvms_new:&proxies when: nodns is not defined or not nodns - vars_files: - - /srv/web/infra/ansible/vars/global.yml - - /srv/web/infra/ansible/vars/{{ ansible_distribution }}.yml - # - name: get info on guests (postreboot) # virt: command=info # register: vminfo_post