我正在使用ec2广告资源插件,并且对能够为它提供参数的功能感兴趣:
plugin: aws_ec2
regions:
- "{{ region}}"
filters:
tag:Usage: "{{ usage }}"
但是我在执行剧本时提供的额外参数并没有列入清单。对于此命令
ansible-playbook -i inventories/aws/aws_ec2.yml --extra-vars "usage=automation region=us-east-1" ifconfig.playbook.yml
我知道了
[WARNING]: * Failed to parse .../aws_ec2.yml with auto plugin: Invalid endpoint: https://ec2.{{ region }}.amazonaws.com
是否可以使库存参数化?
谢谢