I have the following task out of reach:
- file: "state=directory path=/servers/repo" sudo: yes name: "Create the base site directory."
which should be run as my user, but with root privileges. But even if my user is sudoer, it fails with
Sorry, user sofiab is not allowed to execute '/bin/sh -c echo SUDO-SUCCESS-amlzcqzchzpjsgkllckjhjfednpjgevj; LANG=C LC_CTYPE=C /usr/bin/python /home/sofiab/.ansible/tmp/ansible-tmp-1409321488.66-202796192861545/file; rm -rf /home/sofiab/.ansible/tmp/ansible-tmp-1409321488.66-202796192861545/ >/dev/null 2>&1' as root
Of course, when I do sudo -s on the server, I have all the permissions, but somehow with the impossibility of its operation.
Any idea why?
Sofia
source share