mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 14:22:46 +00:00
[cloud][docs] update ec2_tag documentation example (#22586)
Currently the documentation utilizes with_subelements, but it does not parse the results correctly. By changing to with_items: and specifying the proper list, we are able to tag the instances as expected.
This commit is contained in:
@@ -100,9 +100,8 @@ EXAMPLES = '''
|
|||||||
tags:
|
tags:
|
||||||
Name: dbserver
|
Name: dbserver
|
||||||
Env: production
|
Env: production
|
||||||
with_subelements:
|
with_items:
|
||||||
- ec2_vol.results
|
- ec2_vol.volumes
|
||||||
- volumes
|
|
||||||
|
|
||||||
- name: Get EC2 facts
|
- name: Get EC2 facts
|
||||||
action: ec2_facts
|
action: ec2_facts
|
||||||
|
|||||||
Reference in New Issue
Block a user