template - move backup to its own doc (#59893)

* template - move backup to its own doc

* Use the backup doc fragment for template
pull/60550/head
Jordan Borean 5 years ago committed by GitHub
parent a8d01cf2a2
commit 737a500a30
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -39,6 +39,7 @@ author:
- Ansible Core Team - Ansible Core Team
- Michael DeHaan - Michael DeHaan
extends_documentation_fragment: extends_documentation_fragment:
- backup
- files - files
- template_common - template_common
- validate - validate

@ -15,6 +15,12 @@ module: win_template
version_added: "1.9.2" version_added: "1.9.2"
options: options:
backup: backup:
description:
- Determine whether a backup should be created.
- When set to C(yes), create a backup file including the timestamp information
so you can get the original file back if you somehow clobbered it incorrectly.
type: bool
default: no
version_added: '2.8' version_added: '2.8'
newline_sequence: newline_sequence:
default: '\r\n' default: '\r\n'

@ -39,13 +39,6 @@ options:
- Location to render the template to on the remote machine. - Location to render the template to on the remote machine.
type: path type: path
required: yes required: yes
backup:
description:
- Determine whether a backup should be created.
- When set to C(yes), create a backup file including the timestamp information
so you can get the original file back if you somehow clobbered it incorrectly.
type: bool
default: no
newline_sequence: newline_sequence:
description: description:
- Specify the newline sequence to use for templating files. - Specify the newline sequence to use for templating files.

Loading…
Cancel
Save