Call this "proxies" instead of "target" to get around --extra-vars precedence.

This commit is contained in:
Ralph Bean 2014-12-16 00:59:35 +00:00
parent 02816cef3c
commit 42215ae7f5
2 changed files with 4 additions and 3 deletions

View file

@ -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"