-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

I have problems to provision AWS when I have not at last one instance
online like this:

# ./playbooks/inventory/ec2.py --list
{
  "_meta": {
    "hostvars": {}
  }
}

and when I try to run ansible-playbook I receive

ERROR: provided hosts list is empty

If I go to AWS Console and lounch just one instance, the
ansible-playbook runs without problem and it provision all the other
required instances.

I have followed this tutorial:
http://docs.ansible.com/ansible/guide_aws.html
and also the chapter of Amazon EC2 of Lorin Hochstein book.

I also set these environment variables:
export AWS_ACCESS_KEY_ID='AKI...5YDA'
export AWS_SECRET_ACCESS_KEY='ndqL.....UT0st6'
export ANSIBLE_CONFIG=/etc/ansible/ansible.cfg
export ANSIBLE_HOSTS=/etc/ansible/playbooks/inventory/ec2.py
export EC2_INI_PATH=/etc/ansible/playbooks/inventory/ec2.ini

I also tryed with a hosts file like this:
[defaults]
remote_user = ubuntu
hostfile = ./playbooks/inventory/ec2.py
host_key_checking = False

[ssh_connection]
pipelining = True

but ansible refuses to start provisioning with an empty EC2 inventory.

Can you please explain me how solve the ERROR ?

Regards,

- -- 
Rodolfo Pilas
@pilasguru
http://pilas.guru
gpg: 2048R/23B5BE7B FCE6 6FC5 849D A0F6 E30D  D1FC A33C 4E64 23B5 BE7B
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQEVAwUBVbEgHqM8TmQjtb57AQi38QgAm5YvsmYh8KNoWUoj66uNaITYZgBJ/Uyv
yCmBO47IYOA42/CtEZBgV216C79jkNl+N7tqy/IooSyScCZs+ypTHqgHKrZSDirE
PGRJ6VaeNDPalc3zbVgf5AdwywUbumbYdLp6zlQFBb/uogZ0SvZ/QGZMD+Y+kgy8
zE8FxATaaNx7Mys/BY+iltIAl+D5zTewEUuMSrDJUJdvgy+ORO2VttiwWousnFEC
Cdt8jWvIPWm4ab+Q/WV2moPBW02kfLaPEMPdrQaF0/NwdF7Ys0tqyob13ghtBKwW
sR4PhTiawjsXOjm4wa2kGtDosCJWgwrAQ1b+uA7T5YUQD5FoEgn1Xg==
=NFdS
-----END PGP SIGNATURE-----

-- 
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/55B1201E.3090002%40pilas.guru.
For more options, visit https://groups.google.com/d/optout.

Reply via email to