Thanks you so much for your help the issue has been resolved.

On Tuesday, September 6, 2016 at 5:09:05 PM UTC-4, [email protected] wrote:
>
> I have downloaded ec2.py and ec2.ini files and placed them under
>
> /etc/ansible/inventory
>
> and i have changed the ansible.cfg to
>
> inventory      = /etc/ansible/inventory/ec2.py
>
> i have environment variables set up as
>
> export AWS_ACCESS_KEY_ID="XXXXXXXXXXXXXXX"
> export AWS_SECRET_ACCESS_KEY="XXXXXXXXXXXXXXXXXXXXX"
> export AWS_DEFAULT_REGION="us-east-1"
> export EC2_INI_PATH="/etc/ansible/inventory/ec2.ini"
>
> now when i run ansible -m ping all i am getting
>
> [WARNING]: provided hosts list is empty, only localhost is available
>
> instead of pinging all instances in my account
>

-- 
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 post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/4bfcb125-648d-426e-bcb3-2c34dac2624d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to