Hello! I need to play the playbook unprivileged user. The user is not allowed to use bin/sh and usr/bin/python. How to solve this? Help me please!
How are you calling the playbook?
ansible-playbook -i , /etc/ansible/install_play.yml -u --private-key=/home//.ssh/id_rsa -vvv
And i see /bin/sh -c ‘"’“'sudo -H -S -u root /bin/sh -c '”‘"’“'”‘"’“'”'"'echo BECOME-SUCCESS
But unprivileged user doesn’t have sudo /bin/sh.
How run without executable /bin/sh?
ansible-playbook -i 192.168.10.11, /etc/ansible/install_play.yml -u user --private-key=/home/user/.ssh/id_rsa -vvv
And executable with /bin/sh -c ‘"’"'sudo -H -S -u root /bin/sh -c
But user without /bin/sh in sudoers file