is a new shell created for each task in a playbook?

13 views
Skip to first unread message

chrono

unread,
Feb 10, 2016, 2:37:15 PM2/10/16
to Ansible Project
The environment I work in has sudo locked down so you cannot execute /bin/sh using sudo, which is a huge issue because that is exactly what ansible tries to do.

From looking at the output of playbook execution with the -vvvv flag, it seems to me that each task is run in a new ssh session and new shell.  Is that correct?

Brian Coca

unread,
Feb 10, 2016, 3:41:20 PM2/10/16
to ansible...@googlegroups.com
yes, each task runs by issuing a new ssh connection and passing a new shell command.

ansible does not currently work with sudo restricted to specific commands:


Reply all
Reply to author
Forward
0 new messages