September 2018
Beginner to intermediate
214 pages
5h 53m
English
This is another module to run a shell script on remote nodes. At first, however, it transfers the script that is located on the Ansible master to the remote hosts before executing them. The module runs the script on the shell environment of the remote host, just as if it were run by a local user on the host.
This module provides support for running other types of script, such as Python, Perl, or Ruby. Take a look at the following example playbook, which shows how to use it:
- name: execute a script on a remote host script: ./shell_script.py –some-argumets "42" args: creates: ~/shell.txt executable: python
Read now
Unlock full access