Commit 77b5d287 authored by Lars Beckers's avatar Lars Beckers

ad-auth: make samba admin password location variable

parent 097945f8
---
ad_admin_group: admin
ad_admin_password: samba-admin
......@@ -28,7 +28,7 @@
- name: discover our realm
command: realm discover -v "{{ domain }}"
- name: get a kerberos ticket
shell: echo "{{ lookup('passwordstore', 'samba-admin') }}" | kinit Administrator
shell: echo "{{ lookup('passwordstore', ad_admin_password) }}" | kinit Administrator
when: debian_version == "jessie"
no_log: True
- name: ensure pexpect is installed
......@@ -38,7 +38,7 @@
expect:
command: kinit Administrator
responses:
"Password for Administrator.*": "{{ lookup('passwordstore', 'samba-admin') }}"
"Passwor(d|t) for Administrator.*": "{{ lookup('passwordstore', ad_admin_password) }}"
when: debian_version == "stretch"
no_log: True
- name: leave any other realm
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment