Hi! I’m trying to get an inventory from AWS and I don’t see anywhere to enter in the information I have in my aws_ec2.yaml file . . . Is it possible that I’m looking at a version that uses the old script instead? Here’s what I’m seeing
Hi! I'm trying to get an inventory from AWS and I don't see anywhere to
enter in the information I have in my aws_ec2.yaml file . . . Is it
possible that I'm looking at a version that uses the old script instead?
compose:
ansible_user: tags[‘User’]|default(‘centos’)
ansible_ssh_private_key_file: key_name|default(‘no_key’)|regex_replace(‘^(.*)$’, ‘~/.ssh/\1.pem’)
ansible_ssh_host: public_ip_address
if (
private_ip_address is not defined
or
private_ip_address.startswith(‘10.’)
or
(tags[‘Env’] is defined and tags[‘Env’]==‘test’)
)
and (public_ip_address is defined)
else
private_ip_address