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.

24 lines
895 B

  1. ---
  2. # The Vault role is typically a two step process:
  3. # 1. Bootstrap
  4. # This starts a temporary Vault to generate certs for Vault itself. This
  5. # includes a Root CA for the cluster, assuming one doesn't exist already.
  6. # The temporary instance will remain running after Bootstrap, to provide a
  7. # running Vault for the Etcd role to generate certs against.
  8. # 2. Cluster
  9. # Once Etcd is started, then the Cluster tasks can start up a long-term
  10. # Vault cluster using Etcd as the backend. The same Root CA is mounted as
  11. # used during step 1, allowing all certs to have the same chain of trust.
  12. - name: install hvac
  13. pip:
  14. name: "hvac"
  15. state: "present"
  16. ## Bootstrap
  17. - include_tasks: bootstrap/main.yml
  18. when: cert_management == 'vault' and vault_bootstrap | d()
  19. ## Cluster
  20. - include_tasks: cluster/main.yml
  21. when: cert_management == 'vault' and not vault_bootstrap | d()