mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 14:22:46 +00:00
Fix bare variable references in docs (#5554)
This commit is contained in:
committed by
Matt Clay
parent
e45e25c257
commit
2ef59561ba
@@ -107,7 +107,7 @@ EXAMPLES = '''
|
|||||||
register: ec2
|
register: ec2
|
||||||
- name: associate new elastic IPs with each of the instances
|
- name: associate new elastic IPs with each of the instances
|
||||||
ec2_eip: "device_id={{ item }}"
|
ec2_eip: "device_id={{ item }}"
|
||||||
with_items: ec2.instance_ids
|
with_items: "{{ ec2.instance_ids }}"
|
||||||
- name: allocate a new elastic IP inside a VPC in us-west-2
|
- name: allocate a new elastic IP inside a VPC in us-west-2
|
||||||
ec2_eip: region=us-west-2 in_vpc=yes
|
ec2_eip: region=us-west-2 in_vpc=yes
|
||||||
register: eip
|
register: eip
|
||||||
|
|||||||
@@ -95,7 +95,7 @@ post_tasks:
|
|||||||
instance_id: "{{ ansible_ec2_instance_id }}"
|
instance_id: "{{ ansible_ec2_instance_id }}"
|
||||||
ec2_elbs: "{{ item }}"
|
ec2_elbs: "{{ item }}"
|
||||||
state: present
|
state: present
|
||||||
with_items: ec2_elbs
|
with_items: "{{ ec2_elbs }}"
|
||||||
"""
|
"""
|
||||||
|
|
||||||
import time
|
import time
|
||||||
|
|||||||
@@ -93,7 +93,7 @@ tasks:
|
|||||||
instance: "{{ item.id }}"
|
instance: "{{ item.id }}"
|
||||||
region: eu-west-1
|
region: eu-west-1
|
||||||
state: list
|
state: list
|
||||||
with_items: ec2.tagged_instances
|
with_items: "{{ ec2.tagged_instances }}"
|
||||||
register: ec2_vol
|
register: ec2_vol
|
||||||
|
|
||||||
- name: tag the volumes
|
- name: tag the volumes
|
||||||
|
|||||||
@@ -133,7 +133,7 @@ EXAMPLES = '''
|
|||||||
- ec2_vol:
|
- ec2_vol:
|
||||||
instance: "{{ item.id }} "
|
instance: "{{ item.id }} "
|
||||||
volume_size: 5
|
volume_size: 5
|
||||||
with_items: ec2.instances
|
with_items: "{{ ec2.instances }}"
|
||||||
register: ec2_vol
|
register: ec2_vol
|
||||||
|
|
||||||
# Example: Launch an instance and then add a volume if not already attached
|
# Example: Launch an instance and then add a volume if not already attached
|
||||||
@@ -154,7 +154,7 @@ EXAMPLES = '''
|
|||||||
instance: "{{ item.id }}"
|
instance: "{{ item.id }}"
|
||||||
name: my_existing_volume_Name_tag
|
name: my_existing_volume_Name_tag
|
||||||
device_name: /dev/xvdf
|
device_name: /dev/xvdf
|
||||||
with_items: ec2.instances
|
with_items: "{{ ec2.instances }}"
|
||||||
register: ec2_vol
|
register: ec2_vol
|
||||||
|
|
||||||
# Remove a volume
|
# Remove a volume
|
||||||
|
|||||||
@@ -142,7 +142,7 @@ task:
|
|||||||
name: jdavila
|
name: jdavila
|
||||||
state: update
|
state: update
|
||||||
groups: "{{ item.created_group.group_name }}"
|
groups: "{{ item.created_group.group_name }}"
|
||||||
with_items: new_groups.results
|
with_items: "{{ new_groups.results }}"
|
||||||
|
|
||||||
# Example of role with custom trust policy for Lambda service
|
# Example of role with custom trust policy for Lambda service
|
||||||
- name: Create IAM role with custom trust relationship
|
- name: Create IAM role with custom trust relationship
|
||||||
|
|||||||
@@ -92,7 +92,7 @@ task:
|
|||||||
policy_name: "READ-ONLY"
|
policy_name: "READ-ONLY"
|
||||||
policy_document: readonlypolicy.json
|
policy_document: readonlypolicy.json
|
||||||
state: present
|
state: present
|
||||||
with_items: new_groups.results
|
with_items: "{{ new_groups.results }}"
|
||||||
|
|
||||||
# Create a new S3 policy with prefix per user
|
# Create a new S3 policy with prefix per user
|
||||||
tasks:
|
tasks:
|
||||||
|
|||||||
@@ -171,7 +171,7 @@ cl_bond:
|
|||||||
mstpctl_portnetwork: "{{ item.value.mstpctl_portnetwork|default('no') }}"
|
mstpctl_portnetwork: "{{ item.value.mstpctl_portnetwork|default('no') }}"
|
||||||
mstpctl_portadminedge: "{{ item.value.mstpctl_portadminedge|default('no') }}"
|
mstpctl_portadminedge: "{{ item.value.mstpctl_portadminedge|default('no') }}"
|
||||||
mstpctl_bpduguard: "{{ item.value.mstpctl_bpduguard|default('no') }}"
|
mstpctl_bpduguard: "{{ item.value.mstpctl_bpduguard|default('no') }}"
|
||||||
with_dict: cl_bonds
|
with_dict: "{{ cl_bonds }}"
|
||||||
notify: reload networking
|
notify: reload networking
|
||||||
|
|
||||||
# In vars file
|
# In vars file
|
||||||
|
|||||||
@@ -124,7 +124,7 @@ cl_bridge:
|
|||||||
virtual_ip: "{{ item.value.virtual_ip|default(omit) }}"
|
virtual_ip: "{{ item.value.virtual_ip|default(omit) }}"
|
||||||
virtual_mac: "{{ item.value.virtual_mac|default(omit) }}"
|
virtual_mac: "{{ item.value.virtual_mac|default(omit) }}"
|
||||||
mstpctl_treeprio: "{{ item.value.mstpctl_treeprio|default(omit) }}"
|
mstpctl_treeprio: "{{ item.value.mstpctl_treeprio|default(omit) }}"
|
||||||
with_dict: cl_bridges
|
with_dict: "{{ cl_bridges }}"
|
||||||
notify: reload networking
|
notify: reload networking
|
||||||
|
|
||||||
# In vars file
|
# In vars file
|
||||||
|
|||||||
@@ -151,7 +151,7 @@ cl_interface:
|
|||||||
mstpctl_portnetwork: "{{ item.value.mstpctl_portnetwork|default('no') }}"
|
mstpctl_portnetwork: "{{ item.value.mstpctl_portnetwork|default('no') }}"
|
||||||
mstpctl_portadminedge: "{{ item.value.mstpctl_portadminedge|default('no') }}"
|
mstpctl_portadminedge: "{{ item.value.mstpctl_portadminedge|default('no') }}"
|
||||||
mstpctl_bpduguard: "{{ item.value.mstpctl_bpduguard|default('no') }}"
|
mstpctl_bpduguard: "{{ item.value.mstpctl_bpduguard|default('no') }}"
|
||||||
with_dict: cl_interfaces
|
with_dict: "{{ cl_interfaces }}"
|
||||||
notify: reload networking
|
notify: reload networking
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user