# Playbook issues

**URL:** <https://forum.ansible.com/t/playbook-issues/25519>\
**Category:** Ansible Project\
**Created:** [September 19, 2017, 5:35am UTC](https://forum.ansible.com/t/playbook-issues/25519 "2017-09-19T05:35:16Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sreekuttan\_Sree](https://avatars.discourse-cdn.com/v4/letter/s/e9c0ed/32.png) [@Sreekuttan\_Sree](https://forum.ansible.com/u/Sreekuttan_Sree)\
**Post date:** [September 19, 2017, 5:35am UTC](https://forum.ansible.com/t/playbook-issues/25519/1 "2017-09-19T05:35:16Z")

</div>

HI,

TASK [Install foo.] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
fatal: [192.168.80.129]: FAILED! =\> {“changed”: false, “cmd”: “apt-get update”, “failed”: true, “msg”: “W: chmod 0700 of directory /var/lib/apt/lists/partial failed - SetupAPTPartialDirectory (1: Operation not permitted)\nE: Could not open lock file /var/lib/apt/lists/lock - open (13: Permission denied)\nE: Unable to lock directory /var/lib/apt/lists/\nW: Problem unlinking the file /var/cache/apt/pkgcache.bin - RemoveCaches (13: Permission denied)\nW: Problem unlinking the file /var/cache/apt/srcpkgcache.bin - RemoveCaches (13: Permission denied)\nE: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied)\nE: Unable to lock the administration directory (/var/lib/dpkg/), are you root?”, “rc”: 100, “stderr”: “W: chmod 0700 of directory /var/lib/apt/lists/partial failed - SetupAPTPartialDirectory (1: Operation not permitted)\nE: Could not open lock file /var/lib/apt/lists/lock - open (13: Permission denied)\nE: Unable to lock directory /var/lib/apt/lists/\nW: Problem unlinking the file /var/cache/apt/pkgcache.bin - RemoveCaches (13: Permission denied)\nW: Problem unlinking the file /var/cache/apt/srcpkgcache.bin - RemoveCaches (13: Permission denied)\nE: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied)\nE: Unable to lock the administration directory (/var/lib/dpkg/), are you root?\n”, “stderr\_lines”: [“W: chmod 0700 of directory /var/lib/apt/lists/partial failed - SetupAPTPartialDirectory (1: Operation not permitted)”, “E: Could not open lock file /var/lib/apt/lists/lock - open (13: Permission denied)”, “E: Unable to lock directory /var/lib/apt/lists/”, “W: Problem unlinking the file /var/cache/apt/pkgcache.bin - RemoveCaches (13: Permission denied)”, “W: Problem unlinking the file /var/cache/apt/srcpkgcache.bin - RemoveCaches (13: Permission denied)”, “E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied)”, “E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?”], “stdout”: “”, “stdout\_lines”: }

THIS IS THE ERROR COMING WHILE RUNNING THE PLAYBOOK

---

<div class="post-metadata">

**Author:** ![Andreas\_Olsson](https://avatars.discourse-cdn.com/v4/letter/a/ba9def/32.png) [@Andreas\_Olsson](https://forum.ansible.com/u/Andreas_Olsson)\
**Post date:** [September 19, 2017, 6:06am UTC](https://forum.ansible.com/t/playbook-issues/25519/2 "2017-09-19T06:06:05Z")

</div>

mån 2017-09-18 klockan 22:35 -0700 skrev Sreekuttan Sree:

> ...  
> E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?  
> ...

Looks like Ansible needs to Become root?

&nbsp;&nbsp;[https://docs.ansible.com/ansible/latest/become.html](https://docs.ansible.com/ansible/latest/become.html)

// Andreas
