Hi,
According to the documentation for the aws_ec2 plugin, the compose option can be used to create vars when the plugin is executed.
I’ve been trying to get this to work with a simple plugin config like so:
plugin: aws_ec2
regions:
- us-east-1
filters:
tag:Environment: prod
instance-state-name: running
hostnames: - private-ip-address
compose:
site: ‘testing’
strict_permissions: False
strict: False
However, when I run a playbook and supply the above inventory file, the ‘site’ var is undefined.
Am I using this option correctly?
Thanks,
Guy