k8s-sig-cluster-lifecycleawskubesprayhigh-availabilityansiblekubernetes-clustergcekubernetesbare-metal
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.
27 lines
841 B
27 lines
841 B
---
|
|
- name: "shared/mount | Test if {{ pki_mount_path }} PKI mount exists"
|
|
uri:
|
|
url: "{{ vault_leader_url }}/v1/sys/mounts/{{ pki_mount_path }}/tune"
|
|
headers: "{{ vault_headers }}"
|
|
ignore_errors: true
|
|
register: vault_pki_mount_check
|
|
|
|
- name: shared/mount | Set pki mount type
|
|
set_fact:
|
|
mount_options: "{{ pki_mount_options | combine({'type': 'pki'}) }}"
|
|
when: vault_pki_mount_check|failed
|
|
|
|
- name: shared/mount | Mount {{ pki_mount_path }} PKI mount if needed
|
|
uri:
|
|
url: "{{ vault_leader_url }}/v1/sys/mounts/{{ pki_mount_path }}"
|
|
headers: "{{ vault_headers }}"
|
|
method: POST
|
|
body_format: json
|
|
body: "{{ mount_options|d() }}"
|
|
status_code: 204
|
|
when: vault_pki_mount_check|failed
|
|
|
|
- name: shared/mount | Unset mount options
|
|
set_fact:
|
|
mount_options: {}
|
|
when: vault_pki_mount_check|failed
|