2017-02-08 21:41:36 +00:00
|
|
|
---
|
|
|
|
|
2018-01-29 11:37:48 +00:00
|
|
|
- include_tasks: ../shared/pki_mount.yml
|
2017-02-08 21:41:36 +00:00
|
|
|
vars:
|
2017-08-30 13:03:22 +00:00
|
|
|
pki_mount_path: auth-pki
|
|
|
|
pki_mount_options:
|
2017-02-08 21:41:36 +00:00
|
|
|
description: PKI mount to generate certs for the Cert Auth Backend
|
|
|
|
config:
|
|
|
|
default_lease_ttl: "{{ vault_default_lease_ttl }}"
|
|
|
|
max_lease_ttl: "{{ vault_max_lease_ttl }}"
|
|
|
|
|
|
|
|
- name: shared/auth_mount | Create a dummy role for issuing certs from auth-pki
|
2018-05-11 16:11:38 +00:00
|
|
|
hashivault_approle_role_create:
|
|
|
|
url: "{{ vault_leader_url }}"
|
|
|
|
token: "{{ vault_root_token }}"
|
|
|
|
ca_cert: "{{ vault_cert_dir }}/ca.pem"
|
|
|
|
name: "auth-pki/roles/dummy"
|
|
|
|
policies:
|
|
|
|
allow_any_name: true
|