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

@@ -29,3 +29,4 @@
set_fact:
vault_cluster_is_initialized: "{{ vault_is_initialized or hostvars[item]['vault_is_initialized'] }}"
with_items: "{{ groups.vault }}"
run_once: true

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