Hi. I hope someone can help me out here. In one of my plays, I need to have a user be able to run an ansible task which runs a command on a remote host with sudo. On the remote host, the user is allowed to run this command with root privs, per the sudoers rules. But it’s not working, and it makes me wonder if either I’m doing it wrong, or if ansible is failing to invoke sudo on the remote side.
Here are the details… Thanks in advance!
Using ansible v1.8.2. My local config:
[defaults]
callback_plugins = /home/kallen/orch/ops-ansible/orchestration/callback_plugins
host_key_checking = False
forks = 50
[ssh_connection]
ssh_args = -o ForwardAgent=yes
The play: