domain-controller: Load secrets from vault

If a file exists at `vault/samba-dc/{{ krb5_realm }}`, it will be loaded
before applying the tasks to deploy a Samba domain controller. This can
be used, for example, to set the credentials for adding a new domain
controller to an existing domain.
jenkins-master
Dustin 2018-01-29 14:51:15 -06:00
parent cb7c36d65a
commit 940ea5efb2
1 changed files with 5 additions and 0 deletions

View File

@ -1,2 +1,7 @@
- hosts: samba-dc
tasks:
- name: load domain secrets
include_vars: '{{ item }}'
with_fileglob: vault/samba-dc/{{ krb5_realm }}
- import_playbook: samba-dc.yml - import_playbook: samba-dc.yml
- import_playbook: named-server.yml - import_playbook: named-server.yml