Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
Ansible FreeIPA
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Model registry
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Mirror
Ansible FreeIPA
Commits
7eb98eaa
Commit
7eb98eaa
authored
7 years ago
by
Thomas Woerner
Browse files
Options
Downloads
Patches
Plain Diff
roles/ipaclient/tasks/install.yml: Fix principal/keytab check, set default principle early
parent
945da712
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
roles/ipaclient/tasks/install.yml
+3
-8
3 additions, 8 deletions
roles/ipaclient/tasks/install.yml
with
3 additions
and
8 deletions
roles/ipaclient/tasks/install.yml
+
3
−
8
View file @
7eb98eaa
...
@@ -16,10 +16,10 @@
...
@@ -16,10 +16,10 @@
check
:
yes
check
:
yes
register
:
ipadiscovery
register
:
ipadiscovery
-
name
:
Install - Set default principal if no keytab is given
and no OTP usage
-
name
:
Install - Set default principal if no keytab is given
set_fact
:
set_fact
:
ipaclient_principal
:
admin
ipaclient_principal
:
admin
when
:
ipaclient_principal is undefined and ipaclient_keytab is undefined
and not ipaclient_use_otp | bool
when
:
ipaclient_principal is undefined and ipaclient_keytab is undefined
# The following block is executed when using OTP to enroll IPA client
# The following block is executed when using OTP to enroll IPA client
# ie when ipaclient_use_otp is set.
# ie when ipaclient_use_otp is set.
...
@@ -55,7 +55,7 @@
...
@@ -55,7 +55,7 @@
-
name
:
Install - Check if one of password and keytab are set
-
name
:
Install - Check if one of password and keytab are set
fail
:
msg="At least one of password or keytab must be specified"
fail
:
msg="At least one of password or keytab must be specified"
when
:
ipaclient_password is undefined and ipaclient_keytab is undefined or
ipaclient_password == "" or
ipaclient_keytab == ""
when
:
(
ipaclient_password is undefined
or ipaclient_password == "")
and
(
ipaclient_keytab is undefined or ipaclient_keytab == ""
)
-
name
:
Install - Join IPA
-
name
:
Install - Join IPA
ipajoin
:
ipajoin
:
...
@@ -130,11 +130,6 @@
...
@@ -130,11 +130,6 @@
#debug: yes
#debug: yes
register
:
ipaapi
register
:
ipaapi
-
name
:
Install - Set default principal after OTP usage
set_fact
:
ipaclient_principal
:
admin
when
:
ipaclient_principal is undefined and ipaclient_keytab is undefined and ipaclient_use_otp | bool
-
name
:
Install - Create IPA NSS database
-
name
:
Install - Create IPA NSS database
ipanss
:
ipanss
:
servers
:
"
{{
ipadiscovery.servers
}}"
servers
:
"
{{
ipadiscovery.servers
}}"
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment