Improve examples: use FQCNs and always add name: to tasks (#604)

* Improve examples: use FQCNs and always add name: to tasks.

* Improve formulation.

Co-authored-by: Don Naro <dnaro@redhat.com>

* Accidentally added a period.

---------

Co-authored-by: Don Naro <dnaro@redhat.com>
This commit is contained in:
Felix Fontein
2023-05-15 21:41:18 +02:00
committed by GitHub
parent 142403c6cb
commit 3bcc0db4fc
11 changed files with 27 additions and 19 deletions

View File

@@ -114,7 +114,7 @@ EXAMPLES = r'''
register: result
- name: Validate that certificate is valid tomorrow, but not in three weeks
assert:
ansible.builtin.assert:
that:
- result.valid_at.point_1 # valid in one day
- not result.valid_at.point_2 # not valid in three weeks