mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-25 11:51:26 -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
|
@ -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 = '''
|
||||
|
|
|
@ -49,7 +49,7 @@ EXAMPLES = r'''
|
|||
register: connection
|
||||
|
||||
- name: Print results from the query
|
||||
debug:
|
||||
ansible.builtin.debug:
|
||||
var: connection.query_results
|
||||
'''
|
||||
|
||||
|
|
|
@ -46,7 +46,7 @@ EXAMPLES = r'''
|
|||
register: result
|
||||
|
||||
- name: Print server information
|
||||
debug:
|
||||
ansible.builtin.debug:
|
||||
var: result.info
|
||||
'''
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -54,7 +54,7 @@ EXAMPLES = """
|
|||
register: result
|
||||
|
||||
- name: Print schemas
|
||||
debug:
|
||||
ansible.builtin.debug:
|
||||
msg: "{{ result.vertica_schemas }}"
|
||||
"""
|
||||
import traceback
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue