I'm using ec2 inventory plugin and interested in the ability to provide 
parameters to it like this:

    plugin: aws_ec2
    regions:
      - "{{ region}}"
    filters:
      tag:Usage: "{{ usage }}"

But extra-args, that I provide on playbook execution, does not come to 
inventory. For this command

ansible-playbook -i inventories/aws/aws_ec2.yml --extra-vars "usage=automation 
region=us-east-1" ifconfig.playbook.yml

I got
[WARNING]:  * Failed to parse .../aws_ec2.yml with auto plugin: Invalid 
endpoint: https://ec2.{{ region }}.amazonaws.com

Is it possible to make inventory parametrised?

Thanks

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/be3d0d9e-5ebc-40a8-99ca-3b9eefa9515d%40googlegroups.com.

Reply via email to