ansible-lint: Fixed dangling 'when' clause.

A dangling 'when:' clause was failing anisble-lint tests as the task did
not match any valid schema. The dangling clause was removed, and the
usage of 'shell' was changed from free form to use the 'cmd' parameter.
This commit is contained in:
Rafael Guterres Jeffman
2023-02-20 16:35:34 -03:00
parent c715d3aad2
commit dcf9c7d8ce

View File

@@ -98,8 +98,8 @@
always: always:
- name: Remove idoverrideuser. - name: Remove idoverrideuser.
ansible.builtin.shell: | ansible.builtin.shell:
kinit -c idoverride_cache admin <<< SomeADMINpassword cmd: |
ipa idoverrideuser-del "Default Trust View" {{ ad_user }} kinit -c idoverride_cache admin <<< SomeADMINpassword
kdestroy -A -q -c idoverride_cache ipa idoverrideuser-del "Default Trust View" {{ ad_user }}
when: kdestroy -A -q -c idoverride_cache