1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Update examples in modules/commands to use proper YAML syntax. (#35692)

* Update examples to use proper YAML syntax.

* Fix syntax error.
This commit is contained in:
Joshua Smith 2018-05-23 12:50:13 -04:00 committed by Adam Miller
parent 450891a1e7
commit a40f6b7c1f

View file

@ -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.