ansible-target-practice/aws_ec2.yml

23 lines
432 B
YAML
Raw Permalink Normal View History

2020-10-20 05:01:49 +00:00
plugin: aws_ec2
regions:
- eu-west-1
filters:
tag:env:
- prod
hostnames:
2020-10-24 11:14:47 +00:00
- network-interface.association.public-ip
- network-interface.addresses.private-ip-address
2020-10-20 05:01:49 +00:00
- ip-address
- network-interface.addresses.private-ip-address
- private-dns-name
2020-10-24 11:14:47 +00:00
- instance-id
2020-10-20 05:01:49 +00:00
keyed_groups:
- key: tags.env
separator: ""
#prefix: MyGroupPrefix
- prefix: tag
key: tags
fact_caching_timeout: 10
caching_timeout: 10