2017-08-30 13:03:22 +00:00
|
|
|
---
|
|
|
|
|
2018-01-29 11:37:48 +00:00
|
|
|
- include_tasks: ../shared/sync_file.yml
|
2017-08-30 13:03:22 +00:00
|
|
|
vars:
|
|
|
|
sync_file: "ca.pem"
|
2018-05-11 16:11:38 +00:00
|
|
|
sync_file_dir: "{{ etcd_cert_dir }}"
|
2017-08-30 13:03:22 +00:00
|
|
|
sync_file_hosts: "{{ groups.etcd }}"
|
|
|
|
sync_file_is_cert: true
|
|
|
|
|
|
|
|
- name: bootstrap/sync_etcd_certs | Set facts for etcd sync_file results
|
|
|
|
set_fact:
|
|
|
|
vault_etcd_ca_cert_needed: "{{ sync_file_results[0]['no_srcs'] }}"
|
|
|
|
|
|
|
|
- name: bootstrap/sync_etcd_certs | Unset sync_file_results after ca.pem sync
|
|
|
|
set_fact:
|
|
|
|
sync_file_results: []
|