Call this "proxies" instead of "target" to get around --extra-vars precedence.
This commit is contained in:
parent
02816cef3c
commit
42215ae7f5
2 changed files with 4 additions and 3 deletions
|
@ -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"
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue