mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-22 12:50:22 -07:00
Reformat code: examples consistently
- added terse syntax to modules.rst - added description of special variables to template module
This commit is contained in:
parent
a4af4a7049
commit
feab57e270
37 changed files with 92 additions and 81 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue