From 42215ae7f536ac168abd803a06046e08bd56245b Mon Sep 17 00:00:00 2001 From: Ralph Bean Date: Tue, 16 Dec 2014 00:59:35 +0000 Subject: [PATCH] Call this "proxies" instead of "target" to get around --extra-vars precedence. --- playbooks/update-proxy-dns.yml | 5 +++-- playbooks/vhost_reboot.yml | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/playbooks/update-proxy-dns.yml b/playbooks/update-proxy-dns.yml index c7eb18be24..5804439e52 100644 --- a/playbooks/update-proxy-dns.yml +++ b/playbooks/update-proxy-dns.yml @@ -1,10 +1,10 @@ # Must be called with --extra-vars. requires: -# - target -- which proxies to change +# - proxies -- which proxies to change # - status -- what to do. must be either 'enable' or 'disable' # - userstring -- the git commit userstring for the dns repo - name: Either take a proxy out of dns or put it back in - hosts: "{{ target }}" + hosts: "{{ proxies }}" user: root serial: 1 vars_files: @@ -44,6 +44,7 @@ - name: Run update-dns on the nameservers hosts: dns user: root + gather_facts: False vars_files: - /srv/web/infra/ansible/vars/global.yml - "{{ private }}/vars.yml" diff --git a/playbooks/vhost_reboot.yml b/playbooks/vhost_reboot.yml index e2526af965..21b3c99046 100644 --- a/playbooks/vhost_reboot.yml +++ b/playbooks/vhost_reboot.yml @@ -33,7 +33,7 @@ with_items: vmlist.list_vms # Call out to another playbook. Disable any proxies that may live here -- include: update-proxy-dns.yml status=disable target=myvms_new:&proxies +- include: update-proxy-dns.yml status=disable proxies=myvms_new:&proxies - name: halt instances hosts: myvms_new