mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2026-03-07 19:51:15 -03:30
FIX: Unneded (extra) cycles in some tasks (#1393)
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user