Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
infra
ansible-shared
samba
Commits
77b5d287
Commit
77b5d287
authored
Oct 15, 2017
by
Lars Beckers
Browse files
ad-auth: make samba admin password location variable
parent
097945f8
Changes
2
Hide whitespace changes
Inline
Side-by-side
ad-auth/defaults/main.yml
View file @
77b5d287
---
ad_admin_group
:
admin
ad_admin_password
:
samba-admin
ad-auth/tasks/sssd.yml
View file @
77b5d287
...
...
@@ -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
:
"
Passwor
d
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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment