You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

30 lines
911 B

  1. ---
  2. - include: ../shared/sync_file.yml
  3. vars:
  4. sync_file: "ca.pem"
  5. sync_file_dir: "{{ vault_cert_dir }}"
  6. sync_file_hosts: "{{ groups.vault }}"
  7. sync_file_is_cert: true
  8. - name: bootstrap/sync_vault_certs | Set facts for vault sync_file results
  9. set_fact:
  10. vault_ca_cert_needed: "{{ sync_file_results[0]['no_srcs'] }}"
  11. - name: bootstrap/sync_vault_certs | Unset sync_file_results after ca.pem sync
  12. set_fact:
  13. sync_file_results: []
  14. - include: ../shared/sync_file.yml
  15. vars:
  16. sync_file: "api.pem"
  17. sync_file_dir: "{{ vault_cert_dir }}"
  18. sync_file_hosts: "{{ groups.vault }}"
  19. sync_file_is_cert: true
  20. - name: bootstrap/sync_vault_certs | Set fact if Vault's API cert is needed
  21. set_fact:
  22. vault_api_cert_needed: "{{ sync_file_results[0]['no_srcs'] }}"
  23. - name: bootstrap/sync_vault_certs | Unset sync_file_results after api.pem sync
  24. set_fact:
  25. sync_file_results: []