mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Change examples syntax on script module
This commit is contained in:
parent
847cc0a1ec
commit
60a92eadd7
1 changed files with 7 additions and 3 deletions
|
@ -57,8 +57,12 @@ EXAMPLES = '''
|
||||||
- script: /some/local/script.sh --some-arguments 1234
|
- script: /some/local/script.sh --some-arguments 1234
|
||||||
|
|
||||||
# Run a script that creates a file, but only if the file is not yet created
|
# Run a script that creates a file, but only if the file is not yet created
|
||||||
- script: /some/local/create_file.sh --some-arguments 1234 creates=/the/created/file.txt
|
- script: /some/local/create_file.sh --some-arguments 1234
|
||||||
|
args:
|
||||||
|
creates: /the/created/file.txt
|
||||||
|
|
||||||
# Run a script that removes a file, but only if the file is not yet removed
|
# Run a script that removes a file, but only if the file is not yet removed
|
||||||
- script: /some/local/remove_file.sh --some-arguments 1234 removes=/the/removed/file.txt
|
- script: /some/local/remove_file.sh --some-arguments 1234
|
||||||
|
args:
|
||||||
|
removes: /the/removed/file.txt
|
||||||
'''
|
'''
|
||||||
|
|
Loading…
Reference in a new issue