I am also encountering this exact error. Error occurs in all 1.5.* Ansible 
releases (and master). 

❯ ansible-playbook -vvv --private-key=~/.vagrant.d/insecure_private_key 
--user=vagrant --limit=default --inventory-file=ansible/hosts/development 
ansible/install-for-local-dev.yml
Traceback (most recent call last):
  File "/Users/travis/Documents/Code/ansible/bin/ansible-playbook", line 
306, in <module>
    sys.exit(main(sys.argv[1:]))
  File "/Users/travis/Documents/Code/ansible/bin/ansible-playbook", line 
89, in main
    if (options.su or options.su_user or options.ask_su_pass) and \
AttributeError: Values instance has no attribute 'su'

Is there no default value for su? 

On Thursday, February 6, 2014 7:28:17 AM UTC-8, Paul Durivage wrote:
>
> Hi Rinat,
>
> Looks like ansible-playbook is importing an older, unpatched version of 
> the base_parser. Running from devel with su, I'm not having this problem.
>
> Attempt to fetch the latest version of the library and try again.
>
> 09:18 $ ansible-playbook --su --ask-su-pass -vv mine-local/test-su.yml -i 
> mine-local/staging
> su password:
>
> PLAY [Test su connecting as root] 
> *********************************************
>
> TASK: [Test connecting as root] 
> ***********************************************
> <two> REMOTE_MODULE command /usr/bin/whoami
> <one> REMOTE_MODULE command /usr/bin/whoami
> changed: [two] => {"changed": true, "cmd": ["/usr/bin/whoami"], "delta": 
> "0:00:00.006269", "end": "2014-02-06 15:15:37.010804", "rc": 0, "start": 
> "2014-02-06 15:15:37.004535", "stderr": "", "stdout": "root"}
> changed: [one] => {"changed": true, "cmd": ["/usr/bin/whoami"], "delta": 
> "0:00:00.005842", "end": "2014-02-06 15:15:44.060290", "rc": 0, "start": 
> "2014-02-06 15:15:44.054448", "stderr": "", "stdout": "root"}
>
> PLAY RECAP 
> ********************************************************************
> one            : ok=1    changed=1    unreachable=0    failed=0
> two            : ok=1    changed=1    unreachable=0    failed=0
>
>
>
>
> On Thu, Feb 6, 2014 at 7:41 AM, Rinat Shigapov 
> <rinats...@gmail.com<javascript:>
> > wrote:
>
>>
>> I get error when try to use ansible from devel:
>>
>> $ ansible-playbook -i inventories/production/local.ini 
>> provisioning/ru-appservers.yml --tag configuration --check -vvvv
>> Traceback (most recent call last):
>>   File "/home/srk/envs/madmin/bin/ansible-playbook", line 10, in <module>
>>     execfile(__file__)
>>   File "/home/srk/workspace/ansible/bin/ansible-playbook", line 283, in 
>> <module>
>>     sys.exit(main(sys.argv[1:]))
>>   File "/home/srk/workspace/ansible/bin/ansible-playbook", line 87, in 
>> main
>>     if (options.su or options.su_user or options.ask_su_pass) and \
>> AttributeError: Values instance has no attribute 'su'
>>
>>  -- 
>> 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 ansible-proje...@googlegroups.com <javascript:>.
>> To post to this group, send email to ansible...@googlegroups.com<javascript:>
>> .
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>
>

-- 
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 ansible-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/8a3c634d-3c25-4dae-9a9b-49d71e527e9a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to