mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 14:22:46 +00:00
added backup option to the assemble,lineinfile and template module docs
This commit is contained in:
@@ -20,6 +20,9 @@ sorting order. Puppet calls this idea "fragments".
|
|||||||
+--------------------+----------+---------+----------------------------------------------------------------------------+
|
+--------------------+----------+---------+----------------------------------------------------------------------------+
|
||||||
| dest | yes | | A file to create using the concatenation of all of the source files |
|
| dest | yes | | A file to create using the concatenation of all of the source files |
|
||||||
+--------------------+----------+---------+----------------------------------------------------------------------------+
|
+--------------------+----------+---------+----------------------------------------------------------------------------+
|
||||||
|
| backup | no | no | Create a backup file including the timestamp information so you can |
|
||||||
|
| | | | get the original file back if you somehow clobbered it incorrectly. |
|
||||||
|
+--------------------+----------+---------+----------------------------------------------------------------------------+
|
||||||
| OTHERS | | | All arguments that the file module takes may also be used |
|
| OTHERS | | | All arguments that the file module takes may also be used |
|
||||||
+--------------------+----------+---------+----------------------------------------------------------------------------+
|
+--------------------+----------+---------+----------------------------------------------------------------------------+
|
||||||
|
|
||||||
|
|||||||
@@ -30,6 +30,9 @@ For other cases, see the copy or template modules.
|
|||||||
| | | | inserting the line at the beginning of the file, and EOF for inserting the |
|
| | | | inserting the line at the beginning of the file, and EOF for inserting the |
|
||||||
| | | | line at the end of the file. |
|
| | | | line at the end of the file. |
|
||||||
+--------------------+----------+---------+----------------------------------------------------------------------------+
|
+--------------------+----------+---------+----------------------------------------------------------------------------+
|
||||||
|
| backup | no | no | Create a backup file including the timestamp information so you can |
|
||||||
|
| | | | get the original file back if you somehow clobbered it incorrectly. |
|
||||||
|
+--------------------+----------+---------+----------------------------------------------------------------------------+
|
||||||
|
|
||||||
Example action from Ansible :doc:`playbooks`::
|
Example action from Ansible :doc:`playbooks`::
|
||||||
|
|
||||||
|
|||||||
@@ -13,6 +13,9 @@ Templates a file out to a remote server.
|
|||||||
+--------------------+----------+---------+----------------------------------------------------------------------------+
|
+--------------------+----------+---------+----------------------------------------------------------------------------+
|
||||||
| dest | yes | | Location to render the template on the remote server |
|
| dest | yes | | Location to render the template on the remote server |
|
||||||
+--------------------+----------+---------+----------------------------------------------------------------------------+
|
+--------------------+----------+---------+----------------------------------------------------------------------------+
|
||||||
|
| backup | no | no | Create a backup file including the timestamp information so you can |
|
||||||
|
| | | | get the original file back if you somehow clobbered it incorrectly. |
|
||||||
|
+--------------------+----------+---------+----------------------------------------------------------------------------+
|
||||||
| OTHERS | | | This module also supports all of the arguments to the file module |
|
| OTHERS | | | This module also supports all of the arguments to the file module |
|
||||||
+--------------------+----------+---------+----------------------------------------------------------------------------+
|
+--------------------+----------+---------+----------------------------------------------------------------------------+
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user