Reformat code: examples consistently

- added terse syntax to modules.rst
 - added description of special variables to template module
This commit is contained in:
Jan-Piet Mens
2012-10-23 15:14:01 +02:00
parent a4af4a7049
commit feab57e270
37 changed files with 92 additions and 81 deletions

View File

@@ -61,9 +61,9 @@ options:
required: false
default: null
examples:
- code: command /sbin/shutdown -t now
- code: "command: /sbin/shutdown -t now"
description: "Example from Ansible Playbooks"
- code: command /usr/bin/make_database.sh arg1 arg2 creates=/path/to/database
- code: "command: /usr/bin/make_database.sh arg1 arg2 creates=/path/to/database"
description: "I(creates), I(removes), and I(chdir) can be specified after the command. For instance, if you only want to run a command if a certain file does not exist, use this."
notes:
- If you want to run a command through the shell (say you are using C(<),