# ansible on aws

**URL:** <https://forum.ansible.com/t/ansible-on-aws/23280>\
**Category:** Ansible Project\
**Tags:** ubuntu, aws\
**Created:** [December 19, 2016, 12:33am UTC](https://forum.ansible.com/t/ansible-on-aws/23280 "2016-12-19T00:33:21Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![kaja\_salaam](https://avatars.discourse-cdn.com/v4/letter/k/f6c823/32.png) [@kaja\_salaam](https://forum.ansible.com/u/kaja_salaam)\
**Post date:** [December 19, 2016, 12:33am UTC](https://forum.ansible.com/t/ansible-on-aws/23280/1 "2016-12-19T00:33:21Z")

</div>

##### ISSUE TYPE

- Bug Report

##### COMPONENT NAME

/etc/ansible/ec2.py

##### ANSIBLE VERSION

```auto
ansible --version
ansible 2.3.0
config file = /etc/ansible/ansible.cfg
configured module search path = Default w/o overrides

```

##### CONFIGURATION
remote\_user = root

#remote\_user = ubuntu

##### OS / ENVIRONMENT
cat /etc/issue

Amazon Linux AMI release 2016.09  
Kernel \r on an \m

##### SUMMARY

i am configuring ansible for our aws environment. brief about our setup, we have 30 + vpcs with 100 s of hosts and in daily operations , we use ssh proxy i.e from ssh (mac)–\> to jumpbox → bastion – \> destination server as a abc-user.  
i installed ansible on one of ec2 and created the dynamic inventory file using /etc/ansible/ec2.py.  
but i cant ssh to any node.

ansible -m ping all  
[WARNING]: provided hosts list is empty, only localhost is available

[WARNING]: No hosts matched, nothing to do

ls -l hosts  
-rw-r–r-- 1 root root 1331374 Dec 17 00:32 hosts

##### EXPECTED RESULTS

ping all the servers in our account.  
please let me know if any security group or pem keys file used for each vpc.
