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

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

* Improvements.

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

---------

Co-authored-by: Don Naro <dnaro@redhat.com>
This commit is contained in:
Felix Fontein
2023-05-15 21:41:58 +02:00
committed by GitHub
parent 245ab76b09
commit 7bdb2127e0
4 changed files with 40 additions and 23 deletions
+4 -4
View File
@@ -103,8 +103,6 @@ EXAMPLES = '''
Docker in Swarm mode: {{ result.docker_swarm_active }}
This is a Manager node: {{ result.docker_swarm_manager }}
- block:
- name: Get info on Docker Swarm and list of registered nodes
community.docker.docker_swarm_info:
nodes: true
@@ -123,7 +121,8 @@ EXAMPLES = '''
name: mynode
register: result
- ansible.builtin.debug:
- name: Show swarm facts
ansible.builtin.debug:
var: result.swarm_facts
- name: Get the swarm unlock key
@@ -131,7 +130,8 @@ EXAMPLES = '''
unlock_key: true
register: result
- ansible.builtin.debug:
- name: Print swarm unlock key
ansible.builtin.debug:
var: result.swarm_unlock_key
'''