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

Update docs on action shorthand.

This commit is contained in:
Michael DeHaan 2013-08-01 20:28:37 -04:00
parent 20f7e2ef71
commit 82d6323845

View file

@ -264,17 +264,15 @@ Action Shorthand
.. versionadded: 0.8
Rather than listing out the explicit word, "action:", like so::
Ansible prefers listing modules like this in 0.8 and later::
template: src=templates/foo.j2 dest=/etc/foo.conf
It is also possible to say:
You will notice in earlier versions, this was only available as::
template: src=templates/foo.j2 dest=/etc/foo.conf
action: template src=templates/foo.j2 dest=/etc/foo.conf
The name of the module is simply followed by a colon and the arguments to that module. We think this is a lot more intuitive.
Our documentation has not converted over to this new format just yet as many users may still be using older versions.
You'll be able to use both formats forever.
The old form continues to work in newer versions without any plan of deprecation.
Running Operations On Change
````````````````````````````