aws_ec2 and compose option

34 views
Skip to first unread message

Guy Knights

unread,
Dec 11, 2019, 6:06:13 PM12/11/19
to ansible...@googlegroups.com
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




Guy Knights

unread,
Dec 13, 2019, 7:21:20 PM12/13/19
to Ansible Project
Does anyone have any suggestions about this?
Reply all
Reply to author
Forward
0 new messages