mirror of
https://github.com/freeipa/ansible-freeipa.git
synced 2026-06-11 19:25:54 +00:00
ansible-lint: Fix key order on upstream tests
In latest ansible-lint versions, the use of "blocks" has a required order to be implemented. According to ansible-lint error mesage, the order is name, when, block, rescue, always. As not following this rule is now an error, this patch fixes all tests for the 'key-order[task]' error.
This commit is contained in:
@@ -10,6 +10,7 @@
|
||||
ansible.builtin.include_tasks: ../env_freeipa_facts.yml
|
||||
|
||||
- name: Host principals are only possible with IPA 4.9.0+
|
||||
when: ipa_version is version('4.9.0', '>=')
|
||||
block:
|
||||
|
||||
# SET FACTS
|
||||
@@ -145,5 +146,3 @@
|
||||
state: absent
|
||||
register: result
|
||||
failed_when: not result.changed or result.failed
|
||||
|
||||
when: ipa_version is version('4.9.0', '>=')
|
||||
|
||||
Reference in New Issue
Block a user