Dynamic inventory
Download ec2.py from here. Save it in your Ansible root folder.
Edit ansible.cfg
as follows:
Your playbook host must be as follows:
Run the playbook:
variable_host
is the EC2 instance tag. In this example the tag name is tfplayer
and the tag content is vpninstance
.
Last updated