ansible-target-practice/aws_ec2.yml
2020-10-24 13:14:47 +02:00

23 lines
432 B
YAML

plugin: aws_ec2
regions:
- eu-west-1
filters:
tag:env:
- prod
hostnames:
- network-interface.association.public-ip
- network-interface.addresses.private-ip-address
- ip-address
- network-interface.addresses.private-ip-address
- private-dns-name
- instance-id
keyed_groups:
- key: tags.env
separator: ""
#prefix: MyGroupPrefix
- prefix: tag
key: tags
fact_caching_timeout: 10
caching_timeout: 10