Skip to content
Snippets Groups Projects
Commit 77b5d287 authored by Lars Beckers's avatar Lars Beckers
Browse files

ad-auth: make samba admin password location variable

parent 097945f8
No related branches found
No related tags found
No related merge requests found
--- ---
ad_admin_group: admin ad_admin_group: admin
ad_admin_password: samba-admin
...@@ -28,7 +28,7 @@ ...@@ -28,7 +28,7 @@
- name: discover our realm - name: discover our realm
command: realm discover -v "{{ domain }}" command: realm discover -v "{{ domain }}"
- name: get a kerberos ticket - 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" when: debian_version == "jessie"
no_log: True no_log: True
- name: ensure pexpect is installed - name: ensure pexpect is installed
...@@ -38,7 +38,7 @@ ...@@ -38,7 +38,7 @@
expect: expect:
command: kinit Administrator command: kinit Administrator
responses: responses:
"Password for Administrator.*": "{{ lookup('passwordstore', 'samba-admin') }}" "Passwor(d|t) for Administrator.*": "{{ lookup('passwordstore', ad_admin_password) }}"
when: debian_version == "stretch" when: debian_version == "stretch"
no_log: True no_log: True
- name: leave any other realm - name: leave any other realm
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment