# Get AttributeError: Values instance has no attribute 'su' on ansible == 3260e69

**URL:** <https://forum.ansible.com/t/get-attributeerror-values-instance-has-no-attribute-su-on-ansible-3260e69/14508>\
**Category:** Ansible Project\
**Created:** [February 6, 2014, 1:41pm UTC](https://forum.ansible.com/t/get-attributeerror-values-instance-has-no-attribute-su-on-ansible-3260e69/14508 "2014-02-06T13:41:23Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rinat\_Shigapov](https://avatars.discourse-cdn.com/v4/letter/r/cc9497/32.png) [@Rinat\_Shigapov](https://forum.ansible.com/u/Rinat_Shigapov)\
**Post date:** [February 6, 2014, 1:41pm UTC](https://forum.ansible.com/t/get-attributeerror-values-instance-has-no-attribute-su-on-ansible-3260e69/14508/1 "2014-02-06T13:41:23Z")

</div>

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   
execfile( **file** )  
File “/home/srk/workspace/ansible/bin/ansible-playbook”, line 283, in   
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’

---

<div class="post-metadata">

**Author:** ![Paul\_Durivage](https://avatars.discourse-cdn.com/v4/letter/p/94ad74/32.png) [@Paul\_Durivage](https://forum.ansible.com/u/Paul_Durivage)\
**Post date:** [February 6, 2014, 3:28pm UTC](https://forum.ansible.com/t/get-attributeerror-values-instance-has-no-attribute-su-on-ansible-3260e69/14508/2 "2014-02-06T15:28:17Z")

</div>

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] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
 REMOTE\_MODULE command /usr/bin/whoami  
 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
