From a40f6b7c1fd99c21a369cc499e5a98eb11d7f7cf Mon Sep 17 00:00:00 2001 From: Joshua Smith Date: Wed, 23 May 2018 12:50:13 -0400 Subject: [PATCH] Update examples in modules/commands to use proper YAML syntax. (#35692) * Update examples to use proper YAML syntax. * Fix syntax error. --- lib/ansible/modules/commands/command.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/ansible/modules/commands/command.py b/lib/ansible/modules/commands/command.py index 288a1e1017..694604a5d2 100644 --- a/lib/ansible/modules/commands/command.py +++ b/lib/ansible/modules/commands/command.py @@ -77,7 +77,9 @@ EXAMPLES = ''' register: mymotd - name: Run the command if the specified file does not exist. - command: /usr/bin/make_database.sh arg1 arg2 creates=/path/to/database + command: /usr/bin/make_database.sh arg1 arg2 + args: + creates: /path/to/database # You can also use the 'args' form to provide the options. - name: This command will change the working directory to somedir/ and will only run when /path/to/database doesn't exist.