Skip to content

Commit

Permalink
Update examples in modules/commands to use proper YAML syntax. (ansib…
Browse files Browse the repository at this point in the history
…le#35692)

* Update examples to use proper YAML syntax.

* Fix syntax error.
  • Loading branch information
jcsmith authored and Timur Evdokimov committed Jun 26, 2018
1 parent 6bc5c56 commit 51e3242
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/ansible/modules/commands/command.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,9 @@
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.
Expand Down

0 comments on commit 51e3242

Please sign in to comment.