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.

18 lines
511 B

  1. ---
  2. - name: shared/mount | Test if PKI mount exists
  3. uri:
  4. url: "{{ vault_leader_url }}/v1/sys/mounts/{{ mount_name }}/tune"
  5. headers: "{{ vault_headers }}"
  6. ignore_errors: true
  7. register: vault_pki_mount_check
  8. - name: shared/mount | Mount PKI mount if needed
  9. uri:
  10. url: "{{ vault_leader_url }}/v1/sys/mounts/{{ mount_name }}"
  11. headers: "{{ vault_headers }}"
  12. method: POST
  13. body_format: json
  14. body: "{{ mount_options|d() }}"
  15. status_code: 204
  16. when: vault_pki_mount_check|failed