The script execution module

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
This module acts like the raw command module. It is also supported on Windows remote hosts as it is.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.129.247.196