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

@@ -175,7 +175,8 @@ EXAMPLES = r'''
path: /etc/ssl/csr/ansible.com.key
register: result_privatekey
- assert:
- name: Check conditions on certificate, CSR, and private key
ansible.builtin.assert:
that:
# When private key was specified for assertonly, this was checked:
- result.public_key == result_privatekey.public_key