2017-08-30 21:03:22 +08:00
|
|
|
---
|
|
|
|
|
2018-01-29 19:37:48 +08:00
|
|
|
- include_tasks: ../shared/sync_file.yml
|
2017-08-30 21:03:22 +08:00
|
|
|
vars:
|
|
|
|
sync_file: "ca.pem"
|
2018-05-12 00:11:38 +08:00
|
|
|
sync_file_dir: "{{ etcd_cert_dir }}"
|
2017-08-30 21:03:22 +08: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: []
|