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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Mirror
Ansible FreeIPA
Commits
81e6cbe6
Unverified
Commit
81e6cbe6
authored
Dec 8, 2023
by
Thomas Woerner
Committed by
GitHub
Dec 8, 2023
Browse files
Options
Downloads
Plain Diff
Merge pull request #1187 from rjeffman/ipaclient_fix_otp_error_report
ipaclient: Fix OTP error reporting
parents
9ecbe231
22214daf
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
roles/ipaclient/tasks/install.yml
+7
-6
7 additions, 6 deletions
roles/ipaclient/tasks/install.yml
with
7 additions
and
6 deletions
roles/ipaclient/tasks/install.yml
+
7
−
6
View file @
81e6cbe6
...
...
@@ -166,18 +166,19 @@
register
:
result_ipaclient_get_otp
delegate_to
:
"
{{
result_ipaclient_test.servers[0]
}}"
-
name
:
Install - Report error for OTP generation
ansible.builtin.debug
:
msg
:
"
{{
result_ipaclient_get_otp.msg
}}"
when
:
result_ipaclient_get_otp is failed
failed_when
:
yes
-
name
:
Install - Store the previously obtained OTP
no_log
:
yes
ansible.builtin.set_fact
:
ipaadmin_orig_password
:
"
{{
ipaadmin_password
|
default(omit)
}}"
ipaadmin_password
:
"
{{
result_ipaclient_get_otp.host.randompassword
if
result_ipaclient_get_otp.host
is
defined
}}"
rescue
:
-
name
:
Install - Report error for OTP generation
ansible.builtin.debug
:
msg
:
"
{{
result_ipaclient_get_otp.msg
}}"
when
:
result_ipaclient_get_otp is failed
failed_when
:
yes
always
:
-
name
:
Install - Remove keytab temporary file
ansible.builtin.file
:
...
...
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
sign in
to comment