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.

20 lines
649 B

  1. ---
  2. - include_tasks: ../shared/pki_mount.yml
  3. vars:
  4. pki_mount_path: auth-pki
  5. pki_mount_options:
  6. description: PKI mount to generate certs for the Cert Auth Backend
  7. config:
  8. default_lease_ttl: "{{ vault_default_lease_ttl }}"
  9. max_lease_ttl: "{{ vault_max_lease_ttl }}"
  10. - name: shared/auth_mount | Create a dummy role for issuing certs from auth-pki
  11. uri:
  12. url: "{{ hostvars[groups.vault|first]['vault_leader_url'] }}/v1/auth-pki/roles/dummy"
  13. headers: "{{ hostvars[groups.vault|first]['vault_headers'] }}"
  14. method: POST
  15. body_format: json
  16. body:
  17. {'allow_any_name': true}
  18. status_code: 204