mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
* Document it is a dictionary to reduce confusion.
* Add variable example
(cherry picked from commit 757427cadf
)
Co-authored-by: Erinn Looney-Triggs <erinn@users.noreply.github.com>
This commit is contained in:
parent
a16164cb72
commit
7f92aa0854
1 changed files with 3 additions and 1 deletions
|
@ -102,7 +102,7 @@ options:
|
||||||
variables:
|
variables:
|
||||||
type: dict
|
type: dict
|
||||||
description:
|
description:
|
||||||
- List of variables.
|
- Dictionary of variables.
|
||||||
extends_documentation_fragment:
|
extends_documentation_fragment:
|
||||||
- url
|
- url
|
||||||
'''
|
'''
|
||||||
|
@ -116,6 +116,8 @@ EXAMPLES = '''
|
||||||
state: present
|
state: present
|
||||||
name: "{{ ansible_fqdn }}"
|
name: "{{ ansible_fqdn }}"
|
||||||
ip: "{{ ansible_default_ipv4.address }}"
|
ip: "{{ ansible_default_ipv4.address }}"
|
||||||
|
variables:
|
||||||
|
foo: "bar"
|
||||||
delegate_to: 127.0.0.1
|
delegate_to: 127.0.0.1
|
||||||
'''
|
'''
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue