script 990 Bytes
Newer Older
1 2 3 4

DOCUMENTATION = """
---
module: script
5
version_added: "0.9"
6
short_description: Runs a local script on a remote node after transferring it
7
description:
8 9 10 11 12 13
     - "The M(script) module takes the script name followed by a list of
       space-delimited arguments. "
     - "The local script at path will be transfered to the remote node and then executed. "
     - "The given script will be processed through the shell environment on the remote node. "
     - "This module does not require python on the remote system, much like
       the M(raw) module. "
14 15 16
options:
  free_form:
    description:
17
      - path to the local script file followed by optional arguments.
18 19 20 21
    required: true
    default: null
    aliases: []
notes:
22
  - It is usually preferable to write Ansible modules than pushing scripts. Convert your script to an Ansible module for bonus points!
23 24 25
author: Michael DeHaan
"""

26 27 28 29
EXAMPLES = '''
# Example from Ansible Playbooks
- script: /some/local/script.sh --some-arguments 1234
'''