mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 13:52:54 +00:00
Fix bare variable references in docs
This commit is contained in:
committed by
Matt Clay
parent
c6b08ca623
commit
a8d80f7165
@@ -45,7 +45,7 @@ EXAMPLES = '''
|
||||
- action:
|
||||
module: debug
|
||||
msg: "{{ item.dns_name }}"
|
||||
with_items: elb_facts.elbs
|
||||
with_items: "{{ elb_facts.elbs }}"
|
||||
|
||||
# Gather facts about a particular ELB
|
||||
- action:
|
||||
@@ -68,7 +68,7 @@ EXAMPLES = '''
|
||||
- action:
|
||||
module: debug
|
||||
msg: "{{ item.dns_name }}"
|
||||
with_items: elb_facts.elbs
|
||||
with_items: "{{ elb_facts.elbs }}"
|
||||
|
||||
'''
|
||||
|
||||
|
||||
@@ -159,7 +159,7 @@ EXAMPLES = '''
|
||||
|
||||
- name: Add new instance to host group
|
||||
add_host: hostname={{ item['ips'][0].public_ip }} groupname=azure_vms
|
||||
with_items: azure.deployment.instances
|
||||
with_items: "{{ azure.deployment.instances }}"
|
||||
|
||||
- hosts: azure_vms
|
||||
user: devopscle
|
||||
|
||||
@@ -97,7 +97,7 @@ EXAMPLES = '''
|
||||
|
||||
# Gather information about network managed by 'libvirt' remotely using uri
|
||||
- virt_net: command=info uri='{{ item }}'
|
||||
with_items: libvirt_uris
|
||||
with_items: "{{ libvirt_uris }}"
|
||||
register: networks
|
||||
|
||||
# Ensure that a network is active (needs to be defined and built first)
|
||||
|
||||
@@ -108,7 +108,7 @@ EXAMPLES = '''
|
||||
|
||||
# Gather information about pools managed by 'libvirt' remotely using uri
|
||||
- virt_pool: command=info uri='{{ item }}'
|
||||
with_items: libvirt_uris
|
||||
with_items: "{{ libvirt_uris }}"
|
||||
register: storage_pools
|
||||
|
||||
# Ensure that a pool is active (needs to be defined and built first)
|
||||
|
||||
@@ -51,7 +51,7 @@ smartos_image_facts:
|
||||
|
||||
debug: msg="{{ smartos_images[item]['name'] }}-{{smartos_images[item]['version'] }}
|
||||
has {{ smartos_images[item]['clones'] }} VM(s)"
|
||||
with_items: smartos_images.keys()
|
||||
with_items: "{{ smartos_images.keys() }}"
|
||||
'''
|
||||
|
||||
RETURN = '''
|
||||
|
||||
@@ -61,7 +61,7 @@ EXAMPLES = '''
|
||||
username: "{{ esxi_username }}"
|
||||
password: "{{ site_password }}"
|
||||
cluster_uuid: "{{ vsan_cluster.cluster_uuid }}"
|
||||
with_items: groups['esxi'][1:]
|
||||
with_items: "{{ groups['esxi'][1:] }}"
|
||||
|
||||
'''
|
||||
|
||||
|
||||
@@ -42,7 +42,7 @@ EXAMPLES = '''
|
||||
|
||||
- name: Print running VMs
|
||||
debug: msg="{{ item }}"
|
||||
with_items: xs_vms.keys()
|
||||
with_items: "{{ xs_vms.keys() }}"
|
||||
when: xs_vms[item]['power_state'] == "Running"
|
||||
|
||||
TASK: [Print running VMs] ***********************************************************
|
||||
|
||||
Reference in New Issue
Block a user