To run a command on a remote host we can use the Ansible’s shell module (or win_shell for Windows targets). By default, the shell module uses the /bin/sh shell to execute commands, but it is possible to use other shells such as /bin/bash by passing the executable argument. In this note i will show the […]
The post Ansible: Run Shell Command on Remote Host appeared first on ShellHacks.