Change wait for dnsmasq to skip if there are no kube-nodes in play

Also changed unnecessary delay to a max timeout (now defaulting to 1s sleep
between tries)

Also rename play_hosts to ansible_play_hosts
This commit is contained in:
Matthew Mosesohn
2017-03-21 12:31:47 +03:00
parent 771aef0b44
commit 1887e984a0
2 changed files with 3 additions and 3 deletions

View File

@@ -77,6 +77,6 @@
wait_for:
host: "{{dns_server}}"
port: 53
delay: 5
when: inventory_hostname == groups['kube-node'][0]
timeout: 180
when: inventory_hostname == groups['kube-node'][0] and groups['kube-node'][0] in ansible_play_hosts