Playbook issues

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

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?

  https://docs.ansible.com/ansible/latest/become.html

// Andreas