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

@ -122,14 +122,14 @@ EXAMPLES = '''
serial: 1
tasks:
- name: Install dependencies
apt:
ansible.builtin.apt:
name:
- python
- python-pip
- python-setuptools
state: latest
- name: Setup aerospike
pip:
ansible.builtin.pip:
name: aerospike
# check for migrations every (sleep_between_checks)
# If at least (consecutive_good_checks) checks come back OK in a row, then return OK.
@ -152,10 +152,10 @@ EXAMPLES = '''
delay: 60
retries: 120
- name: Another thing
shell: |
ansible.builtin.shell: |
echo foo
- name: Reboot
reboot:
ansible.builtin.reboot:
'''
RETURN = '''

View file

@ -49,7 +49,7 @@ EXAMPLES = r'''
register: connection
- name: Print results from the query
debug:
ansible.builtin.debug:
var: connection.query_results
'''

View file

@ -46,7 +46,7 @@ EXAMPLES = r'''
register: result
- name: Print server information
debug:
ansible.builtin.debug:
var: result.info
'''

View file

@ -66,7 +66,7 @@ EXAMPLES = '''
# Copy database dump file to remote host and restore it to database 'my_db'
- name: Copy database dump file to remote host
copy:
ansible.builtin.copy:
src: dump.sql
dest: /tmp

View file

@ -102,7 +102,7 @@ EXAMPLES = r'''
value: 32mb
register: set
- debug:
- ansible.builtin.debug:
msg: "{{ set.name }} {{ set.prev_val_pretty }} >> {{ set.value_pretty }} restart_req: {{ set.restart_required }}"
when: set.changed
# Ensure that the restart of PostgreSQL server must be required for some parameters.

View file

@ -54,7 +54,7 @@ EXAMPLES = """
register: result
- name: Print schemas
debug:
ansible.builtin.debug:
msg: "{{ result.vertica_schemas }}"
"""
import traceback