Hi everyone, I am new user on ansible and I have a little difficulty to execute commands remotely on a Ubuntu Server. (Ubuntu don't accept ssh with user root and the user vamberto can use sudo su - ) My machine is a Fedora Linux and I execute this command: ansible -vvv wolverine -m apt -a "update_cache=yes" --user=vamberto -k --become-method=su --become-user=root --ask-become-pass
And the server asks SSH password: SU password[defaults to SSH password]: After I putt the ssh and su password I receive this error: olverine | FAILED >> { "failed": true, "msg": "Failed to lock apt for exclusive operation" } Someone can help me ? -- 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/bb7eb804-b508-4e99-b987-4f94f72e36ca%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.