mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-24 03:11:24 -07:00
modules: fix examples to use FQCN for builtin modules (#648)
* modules: fix examples to use FQCN for builtin modules * fix * fix * fix * fix * fix * fix * fix
This commit is contained in:
parent
c034e8c04f
commit
c055340ecb
126 changed files with 290 additions and 286 deletions
|
@ -177,7 +177,7 @@ EXAMPLES = '''
|
|||
project_src: flask
|
||||
register: output
|
||||
|
||||
- debug:
|
||||
- ansible.builtin.debug:
|
||||
var: output
|
||||
|
||||
- name: Run `docker-compose up` again
|
||||
|
@ -186,7 +186,7 @@ EXAMPLES = '''
|
|||
build: no
|
||||
register: output
|
||||
|
||||
- debug:
|
||||
- ansible.builtin.debug:
|
||||
var: output
|
||||
|
||||
- assert:
|
||||
|
@ -199,7 +199,7 @@ EXAMPLES = '''
|
|||
stopped: yes
|
||||
register: output
|
||||
|
||||
- debug:
|
||||
- ansible.builtin.debug:
|
||||
var: output
|
||||
|
||||
- assert:
|
||||
|
@ -214,7 +214,7 @@ EXAMPLES = '''
|
|||
restarted: yes
|
||||
register: output
|
||||
|
||||
- debug:
|
||||
- ansible.builtin.debug:
|
||||
var: output
|
||||
|
||||
- assert:
|
||||
|
@ -232,7 +232,7 @@ EXAMPLES = '''
|
|||
web: 2
|
||||
register: output
|
||||
|
||||
- debug:
|
||||
- ansible.builtin.debug:
|
||||
var: output
|
||||
|
||||
- name: Run with inline v2 compose
|
||||
|
@ -261,7 +261,7 @@ EXAMPLES = '''
|
|||
- db
|
||||
register: output
|
||||
|
||||
- debug:
|
||||
- ansible.builtin.debug:
|
||||
var: output
|
||||
|
||||
- assert:
|
||||
|
@ -293,7 +293,7 @@ EXAMPLES = '''
|
|||
- db
|
||||
register: output
|
||||
|
||||
- debug:
|
||||
- ansible.builtin.debug:
|
||||
var: output
|
||||
|
||||
- assert:
|
||||
|
|
|
@ -46,11 +46,11 @@ EXAMPLES = '''
|
|||
register: result
|
||||
|
||||
- name: Does container exist?
|
||||
debug:
|
||||
ansible.builtin.debug:
|
||||
msg: "The container {{ 'exists' if result.exists else 'does not exist' }}"
|
||||
|
||||
- name: Print information about container
|
||||
debug:
|
||||
ansible.builtin.debug:
|
||||
var: result.container
|
||||
when: result.exists
|
||||
'''
|
||||
|
|
|
@ -126,7 +126,7 @@ EXAMPLES = '''
|
|||
disk_usage: yes
|
||||
register: result
|
||||
|
||||
- debug:
|
||||
- ansible.builtin.debug:
|
||||
var: result.host_info
|
||||
|
||||
'''
|
||||
|
|
|
@ -46,11 +46,11 @@ EXAMPLES = '''
|
|||
register: result
|
||||
|
||||
- name: Does network exist?
|
||||
debug:
|
||||
ansible.builtin.debug:
|
||||
msg: "The network {{ 'exists' if result.exists else 'does not exist' }}"
|
||||
|
||||
- name: Print information about network
|
||||
debug:
|
||||
ansible.builtin.debug:
|
||||
var: result.network
|
||||
when: result.exists
|
||||
'''
|
||||
|
|
|
@ -94,7 +94,7 @@ EXAMPLES = '''
|
|||
register: result
|
||||
|
||||
- name: Inform about basic flags
|
||||
debug:
|
||||
ansible.builtin.debug:
|
||||
msg: |
|
||||
Was able to talk to docker daemon: {{ result.can_talk_to_docker }}
|
||||
Docker in Swarm mode: {{ result.docker_swarm_active }}
|
||||
|
@ -120,7 +120,7 @@ EXAMPLES = '''
|
|||
name: mynode
|
||||
register: result
|
||||
|
||||
- debug:
|
||||
- ansible.builtin.debug:
|
||||
var: result.swarm_facts
|
||||
|
||||
- name: Get the swarm unlock key
|
||||
|
@ -128,7 +128,7 @@ EXAMPLES = '''
|
|||
unlock_key: yes
|
||||
register: result
|
||||
|
||||
- debug:
|
||||
- ansible.builtin.debug:
|
||||
var: result.swarm_unlock_key
|
||||
|
||||
'''
|
||||
|
|
|
@ -42,11 +42,11 @@ EXAMPLES = '''
|
|||
register: result
|
||||
|
||||
- name: Does volume exist?
|
||||
debug:
|
||||
ansible.builtin.debug:
|
||||
msg: "The volume {{ 'exists' if result.exists else 'does not exist' }}"
|
||||
|
||||
- name: Print information about volume
|
||||
debug:
|
||||
ansible.builtin.debug:
|
||||
var: result.volume
|
||||
when: result.exists
|
||||
'''
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue