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:
Andrew Klychkov 2020-07-14 18:28:08 +03:00 committed by GitHub
parent c034e8c04f
commit c055340ecb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
126 changed files with 290 additions and 286 deletions

View file

@ -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:

View file

@ -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
'''

View file

@ -126,7 +126,7 @@ EXAMPLES = '''
disk_usage: yes
register: result
- debug:
- ansible.builtin.debug:
var: result.host_info
'''

View file

@ -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
'''

View file

@ -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
'''

View file

@ -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
'''