Bruce,

You may want to run a more recent version Ansible. There a a lot of 
parameters need 1.6, and even the current release 1.7.2 is starting to fall 
behind for AWS stuff. For instance, spinning up a Encrypted ESB volume 
requires 1.8. Here's a link to where this is discussed. 
http://docs.ansible.com/intro_installation.html

-Christian 

On Thursday, October 23, 2014 12:28:35 PM UTC-4, Bruce Bundy wrote:
>
> Thanks Michael.  That enabled me to debug the problem.  Two things:  I 
> needed to "pip install boto" and "export 
> EC2_INI_PATH=/etc/ansible/ec2.ini".
> :-) works now!
> -Bruce
> On Thursday, October 23, 2014 8:53:07 AM UTC-7, Michael Peters wrote:
>>
>> Try running the dynamic inventory by itself to see what output is 
>> generated. 
>>
>>   ./ec2.py 
>>
>> On Thu, Oct 23, 2014 at 11:32 AM, Bruce Bundy <[email protected]> wrote: 
>> > I have a freshly installed Ubuntu 14.04 LTS instance running ansible 
>> 1.5.4 
>> > and python 2.7.6 
>> > In general my ansible playbooks are running normally, using modules 
>> such as 
>> > apt, gem, pip, authorized_key, user, etc. 
>> > 
>> > Now I am trying to use AWS dynamic inventory features.  I fetched 
>> ec2.py 
>> > using 
>> > 
>> > wget 
>> https://raw.github.com/ansible/ansible/devel/plugins/inventory/ec2.py 
>> > 
>> > and ec2.ini using 
>> > 
>> > wget 
>> https://raw.github.com/ansible/ansible/devel/plugins/inventory/ec2.ini 
>> > 
>> >  but have not made any mods to either file. 
>> > 
>> > When I try the test command provided, I receive the following error: 
>> > 
>> > ----------------- 
>> > 
>> > ansible@admin-staging:~/Ansible$ ansible -i ec2.py -u ubuntu us-east-1d 
>> -m 
>> > ping 
>> > 
>> > Traceback (most recent call last): 
>> > 
>> >   File "/usr/bin/ansible", line 226, in <module> 
>> > 
>> >     (runner, results) = cli.run(options, args) 
>> > 
>> >   File "/usr/bin/ansible", line 142, in run 
>> > 
>> >     inventory_manager = inventory.Inventory(options.inventory) 
>> > 
>> >   File 
>> "/usr/lib/python2.7/dist-packages/ansible/inventory/__init__.py", 
>> > line 106, in __init__ 
>> > 
>> >     self.parser = InventoryParser(filename=host_list) 
>> > 
>> >   File "/usr/lib/python2.7/dist-packages/ansible/inventory/ini.py", 
>> line 41, 
>> > in __init__ 
>> > 
>> >     self._parse() 
>> > 
>> >   File "/usr/lib/python2.7/dist-packages/ansible/inventory/ini.py", 
>> line 45, 
>> > in _parse 
>> > 
>> >     self._parse_base_groups() 
>> > 
>> >   File "/usr/lib/python2.7/dist-packages/ansible/inventory/ini.py", 
>> line 83, 
>> > in _parse_base_groups 
>> > 
>> >     tokens = shlex.split(line) 
>> > 
>> >   File "/usr/lib/python2.7/shlex.py", line 279, in split 
>> > 
>> >     return list(lex) 
>> > 
>> >   File "/usr/lib/python2.7/shlex.py", line 269, in next 
>> > 
>> >     token = self.get_token() 
>> > 
>> >   File "/usr/lib/python2.7/shlex.py", line 96, in get_token 
>> > 
>> >     raw = self.read_token() 
>> > 
>> >   File "/usr/lib/python2.7/shlex.py", line 172, in read_token 
>> > 
>> >     raise ValueError, "No closing quotation" 
>> > 
>> > ValueError: No closing quotation 
>> > 
>> > ----------------- 
>> > 
>> > Does anyone have an idea of what may be going on here?  Thanks very 
>> much for 
>> > your help! 
>> > 
>> > -- 
>> > 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/7674bdf3-4b6a-405c-8178-9ddd4206790e%40googlegroups.com.
>>  
>>
>> > For more options, visit https://groups.google.com/d/optout. 
>>
>

-- 
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/d5446b55-a97d-4d0b-92d7-632b8c33e143%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to