mirror of
https://github.com/freeipa/ansible-freeipa.git
synced 2026-08-01 12:24:43 +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
|
- name: Install - Store the previously obtained OTP
|
||||||
no_log: yes
|
no_log: yes
|
||||||
|
when: result_ipaclient_get_otp.host is defined
|
||||||
ansible.builtin.set_fact:
|
ansible.builtin.set_fact:
|
||||||
ipaadmin_orig_password: "{{ ipaadmin_password | default(omit) }}"
|
ipaadmin_orig_password: "{{ ipaadmin_password | default(omit) }}"
|
||||||
ipaadmin_password: "{{ result_ipaclient_get_otp.host.randompassword
|
ipaadmin_password: "{{ result_ipaclient_get_otp.host.randompassword | default(omit) }}"
|
||||||
if result_ipaclient_get_otp.host is defined }}"
|
|
||||||
rescue:
|
rescue:
|
||||||
- name: Install - Report error for OTP generation
|
- name: Install - Report error for OTP generation
|
||||||
ansible.builtin.debug:
|
ansible.builtin.debug:
|
||||||
|
|||||||
Reference in New Issue
Block a user