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
commit feab57e270
37 changed files with 92 additions and 81 deletions

View file

@ -30,6 +30,11 @@ From playbooks, Ansible modules are executed in a very similar way::
- name: reboot the servers
action: command /sbin/reboot -t now
Version 0.8 and higher support the following shorter syntax::
- name: reboot the servers
command: /sbin/reboot -t now
All modules technically return JSON format data, though if you are using the
command line or playbooks, you don't really need to know much about
that. If you're writing your own module, you care, and this means you do