FIX: Unneded (extra) cycles in some tasks (#1393)

This commit is contained in:
Anton
2017-07-27 19:46:21 +02:00
committed by Matthew Mosesohn
parent b2c83714d1
commit e0960f6288
6 changed files with 17 additions and 0 deletions

View File

@@ -15,3 +15,6 @@
vault_leader_url: "{{ vault_config.listener.tcp.tls_disable|d()|ternary('http', 'https') }}://{{ item }}:{{ vault_port }}"
with_items: "{{ groups.vault }}"
when: "hostvars[item]['vault_leader_check'].get('status') == 200"
run_once: true
- debug: var=vault_leader_url verbosity=2