# Running a playbook with v.07

**URL:** <https://forum.ansible.com/t/running-a-playbook-with-v-07/11778>\
**Category:** Ansible Project\
**Created:** [August 9, 2012, 5:11pm UTC](https://forum.ansible.com/t/running-a-playbook-with-v-07/11778 "2012-08-09T17:11:31Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![James8](https://avatars.discourse-cdn.com/v4/letter/j/ec9cab/32.png) [@James8](https://forum.ansible.com/u/James8)\
**Post date:** [August 9, 2012, 5:11pm UTC](https://forum.ansible.com/t/running-a-playbook-with-v-07/11778/1 "2012-08-09T17:11:31Z")

</div>

sheepchase:tasks jmarcus$ ansible-playbook --version  
ansible-playbook 0.7

sheepchase:tasks jmarcus$ ansible-playbook citrusleaf.yml -u jmarcus -f 2 -K  
sudo password:

PLAY [NewCL00] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*

GATHERING FACTS \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
fatal: [cl010.test.net] =\> Traceback (most recent call last):  
&nbsp;&nbsp;File "/Library/Python/2.7/site-packages/ansible/runner/\_\_init\_\_.py",  
line 451, in \_executor  
&nbsp;&nbsp;&nbsp;&nbsp;exec\_rc = self.\_executor\_internal(host)  
&nbsp;&nbsp;File "/Library/Python/2.7/site-packages/ansible/runner/\_\_init\_\_.py",  
line 497, in \_executor\_internal  
&nbsp;&nbsp;&nbsp;&nbsp;return self.\_executor\_internal\_inner(host, inject, port)  
&nbsp;&nbsp;File "/Library/Python/2.7/site-packages/ansible/runner/\_\_init\_\_.py",  
line 579, in \_executor\_internal\_inner  
&nbsp;&nbsp;&nbsp;&nbsp;result = self.\_execute\_normal\_module(conn, tmp, module\_name, inject=inject)  
&nbsp;&nbsp;File "/Library/Python/2.7/site-packages/ansible/runner/\_\_init\_\_.py",  
line 254, in \_execute\_normal\_module  
&nbsp;&nbsp;&nbsp;&nbsp;exec\_rc = self.\_execute\_module(conn, tmp, module\_name,  
self.module\_args, inject=inject)  
&nbsp;&nbsp;File "/Library/Python/2.7/site-packages/ansible/runner/\_\_init\_\_.py",  
line 232, in \_execute\_module  
&nbsp;&nbsp;&nbsp;&nbsp;res = self.\_low\_level\_exec\_command(conn, cmd, tmp, sudoable=True)  
&nbsp;&nbsp;File "/Library/Python/2.7/site-packages/ansible/runner/\_\_init\_\_.py",  
line 631, in \_low\_level\_exec\_command  
&nbsp;&nbsp;&nbsp;&nbsp;stdin, stdout, stderr = conn.exec\_command(cmd, tmp, sudo\_user,  
sudoable=sudoable)  
&nbsp;&nbsp;File "/Library/Python/2.7/site-packages/ansible/runner/connection/paramiko\_ssh.py",  
line 104, in exec\_command  
&nbsp;&nbsp;&nbsp;&nbsp;vvv("EXEC %s" % sudo\_cmd, host=self.host)  
NameError: global name 'sudo\_cmd' is not defined

fatal: [cl009.test.net] =\> Traceback (most recent call last):  
&nbsp;&nbsp;File "/Library/Python/2.7/site-packages/ansible/runner/\_\_init\_\_.py",  
line 451, in \_executor  
&nbsp;&nbsp;&nbsp;&nbsp;exec\_rc = self.\_executor\_internal(host)  
&nbsp;&nbsp;File "/Library/Python/2.7/site-packages/ansible/runner/\_\_init\_\_.py",  
line 497, in \_executor\_internal  
&nbsp;&nbsp;&nbsp;&nbsp;return self.\_executor\_internal\_inner(host, inject, port)  
&nbsp;&nbsp;File "/Library/Python/2.7/site-packages/ansible/runner/\_\_init\_\_.py",  
line 579, in \_executor\_internal\_inner  
&nbsp;&nbsp;&nbsp;&nbsp;result = self.\_execute\_normal\_module(conn, tmp, module\_name, inject=inject)  
&nbsp;&nbsp;File "/Library/Python/2.7/site-packages/ansible/runner/\_\_init\_\_.py",  
line 254, in \_execute\_normal\_module  
&nbsp;&nbsp;&nbsp;&nbsp;exec\_rc = self.\_execute\_module(conn, tmp, module\_name,  
self.module\_args, inject=inject)  
&nbsp;&nbsp;File "/Library/Python/2.7/site-packages/ansible/runner/\_\_init\_\_.py",  
line 232, in \_execute\_module  
&nbsp;&nbsp;&nbsp;&nbsp;res = self.\_low\_level\_exec\_command(conn, cmd, tmp, sudoable=True)  
&nbsp;&nbsp;File "/Library/Python/2.7/site-packages/ansible/runner/\_\_init\_\_.py",  
line 631, in \_low\_level\_exec\_command  
&nbsp;&nbsp;&nbsp;&nbsp;stdin, stdout, stderr = conn.exec\_command(cmd, tmp, sudo\_user,  
sudoable=sudoable)  
&nbsp;&nbsp;File "/Library/Python/2.7/site-packages/ansible/runner/connection/paramiko\_ssh.py",  
line 104, in exec\_command  
&nbsp;&nbsp;&nbsp;&nbsp;vvv("EXEC %s" % sudo\_cmd, host=self.host)  
NameError: global name 'sudo\_cmd' is not defined

sheepchase:tasks jmarcus$ head citrusleaf.yml  
- hosts: NewCL00  
&nbsp;&nbsp;user: jmarcus  
&nbsp;&nbsp;sudo: True  
&nbsp;&nbsp;gather\_facts: True

&nbsp;&nbsp;tasks:

&nbsp;&nbsp;- name: no nfslock  
&nbsp;&nbsp;&nbsp;&nbsp;action: service name=nfslock state=stopped enabled=no

Any thoughts on this issue?

James

---

<div class="post-metadata">

**Author:** ![Michael\_DeHaan](https://avatars.discourse-cdn.com/v4/letter/m/c4cdca/32.png) [@Michael\_DeHaan](https://forum.ansible.com/u/Michael_DeHaan)\
**Post date:** [August 9, 2012, 5:17pm UTC](https://forum.ansible.com/t/running-a-playbook-with-v-07/11778/2 "2012-08-09T17:17:36Z")

</div>

It's a bug from last night. Please file it.
