mirror of
https://github.com/freeipa/ansible-freeipa.git
synced 2026-07-30 11:24:50 +00:00
Fix ansible-lint E502 for test playbooks.
This patch adds 'name' to all test playbook tasks that did not have it, fixing ansible-lint's error 'unnamed-task'.
This commit is contained in:
@@ -33,7 +33,8 @@
|
||||
register: ipahost
|
||||
failed_when: not ipahost.changed or ipahost.failed
|
||||
|
||||
- assert:
|
||||
- name: Assert ipahost.host.randompassword is defined.
|
||||
assert:
|
||||
that:
|
||||
- ipahost.host.randompassword is defined
|
||||
|
||||
@@ -62,7 +63,8 @@
|
||||
register: ipahost
|
||||
failed_when: not ipahost.changed or ipahost.failed
|
||||
|
||||
- assert:
|
||||
- name: Assert randompassword is defined for host1 and host2.
|
||||
assert:
|
||||
that:
|
||||
- ipahost.host["{{ host1_fqdn }}"].randompassword is
|
||||
defined
|
||||
@@ -87,7 +89,8 @@
|
||||
register: ipahost
|
||||
failed_when: ipahost.changed or not ipahost.failed
|
||||
|
||||
- assert:
|
||||
- name: Assert randompassword is not defined for 'ansible_fqdn'.
|
||||
assert:
|
||||
that:
|
||||
- ipahost.host["{{ ansible_facts['fqdn'] }}"].randompassword is
|
||||
not defined
|
||||
|
||||
Reference in New Issue
Block a user