Commit 82d63238 by Michael DeHaan

Update docs on action shorthand.

parent 20f7e2ef
...@@ -264,17 +264,15 @@ Action Shorthand ...@@ -264,17 +264,15 @@ Action Shorthand
.. versionadded: 0.8 .. 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 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. The old form continues to work in newer versions without any plan of deprecation.
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.
Running Operations On Change Running Operations On Change
```````````````````````````` ````````````````````````````
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment