Fix vault file owner issues and k8s apiserver cert creation (#2985)

apiserver cert should be created only once
This commit is contained in:
Matthew Mosesohn
2018-07-11 14:58:02 +03:00
committed by GitHub
parent 83d1486a67
commit 97e0de7e29
5 changed files with 12 additions and 2 deletions

View File

@@ -43,7 +43,7 @@
- "{{ vault_pki_mounts.etcd }}"
loop_control:
loop_var: mount
when: inventory_hostname in groups.vault and not vault_cluster_is_initialized
when: inventory_hostname == groups.vault|first and not vault_cluster_is_initialized
- include_tasks: ../shared/gen_ca.yml
vars: