On Thursday, 8 November 2018 11:46:50 CET Canal da Lais wrote: > Sorry. > > Corret Mensage error: > > fatal: [192.168.0.82]: FAILED! => {"changed": false, "cmd": "apt-get > update", "msg": "E: 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)", "rc": 100, "stderr": "E: 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)\n", "stderr_lines": ["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)"], "stdout": "Reading package lists...\n", > "stdout_lines": ["Reading package lists..."]} > > > > > Em quinta-feira, 8 de novembro de 2018 11:44:17 UTC+1, Canal da Lais > escreveu: > > > > Good morning, my friends. > > I'm having an error happening on Ansible when I run the playbook below: > > > > - hosts: all > > become: yes > > become_method: sudo > > become_user: ansible
You have become_user ansible, only root user is allowed to install packages. -- Kai Stian Olstad -- 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/4015772.qEe03deydu%40x1. For more options, visit https://groups.google.com/d/optout.