mirror of
https://github.com/freeipa/ansible-freeipa.git
synced 2026-03-26 21:33:05 +00:00
ansible-lint: Fix Jinja error
A task in 'roles/ipaclient/tasks/install.yml' uses logic that ansible-lint and jinja are unable to evaluate due to missing type. By refactoring the task the tools are able to evaluate the task.
This commit is contained in:
@@ -181,10 +181,10 @@
|
||||
|
||||
- name: Install - Store the previously obtained OTP
|
||||
no_log: yes
|
||||
when: result_ipaclient_get_otp.host is defined
|
||||
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 }}"
|
||||
ipaadmin_password: "{{ result_ipaclient_get_otp.host.randompassword | default(omit) }}"
|
||||
rescue:
|
||||
- name: Install - Report error for OTP generation
|
||||
ansible.builtin.debug:
|
||||
|
||||
Reference in New Issue
Block a user