From 34c582287abef955fc66ab4ff23a61d7343256db Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yuma=20Inaura=20=28=E7=A8=B2=E6=B5=A6=E6=82=A0=E9=A6=AC=29?= Date: Fri, 24 Aug 2018 21:59:04 +0900 Subject: [PATCH] Fix script module document (#42778) script module seems does not create / remove files it seems only checks file existence or not existence +label: docsite_pr --- lib/ansible/modules/commands/script.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/ansible/modules/commands/script.py b/lib/ansible/modules/commands/script.py index 424d5029ea..f31c62ec2c 100644 --- a/lib/ansible/modules/commands/script.py +++ b/lib/ansible/modules/commands/script.py @@ -30,11 +30,11 @@ options: required: true creates: description: - - a filename, when it already exists, this step will B(not) be run. + - a filename on remote, when it already exists, this step will B(not) be run. version_added: "1.5" removes: description: - - a filename, when it does not exist, this step will B(not) be run. + - a filename on remote, when it does not exist, this step will B(not) be run. version_added: "1.5" chdir: description: @@ -61,12 +61,12 @@ EXAMPLES = ''' # Example from Ansible Playbooks - 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 only if the file does not exists - 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 only if the file exists - script: /some/local/remove_file.sh --some-arguments 1234 args: removes: /the/removed/file.txt