2017-02-08 21:41:36 +00:00
|
|
|
---
|
|
|
|
|
2018-05-11 16:11:38 +00:00
|
|
|
- name: shared/mount | Enable {{ pki_mount_path }} PKI mount
|
|
|
|
hashivault_secret_enable:
|
|
|
|
url: "{{ vault_leader_url }}"
|
|
|
|
token: "{{ vault_root_token }}"
|
|
|
|
ca_cert: "{{ vault_cert_dir }}/ca.pem"
|
|
|
|
name: "{{ pki_mount_path }}"
|
|
|
|
backend: "pki"
|
|
|
|
config: "{{ pki_mount_options }}"
|
|
|
|
register: secret_enable_result
|
|
|
|
failed_when: 'secret_enable_result.rc !=0 and "existing mount" not in secret_enable_result.msg'
|