Skip to content

Commit

Permalink
template - move backup to its own doc (ansible#59893)
Browse files Browse the repository at this point in the history
* template - move backup to its own doc

* Use the backup doc fragment for template
  • Loading branch information
jborean93 authored Aug 13, 2019
1 parent a8d01cf commit 737a500
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
1 change: 1 addition & 0 deletions lib/ansible/modules/files/template.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
- Ansible Core Team
- Michael DeHaan
extends_documentation_fragment:
- backup
- files
- template_common
- validate
Expand Down
6 changes: 6 additions & 0 deletions lib/ansible/modules/windows/win_template.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,12 @@
version_added: "1.9.2"
options:
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'
newline_sequence:
default: '\r\n'
Expand Down
7 changes: 0 additions & 7 deletions lib/ansible/plugins/doc_fragments/template_common.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,6 @@ class ModuleDocFragment(object):
- Location to render the template to on the remote machine.
type: path
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:
description:
- Specify the newline sequence to use for templating files.
Expand Down

0 comments on commit 737a500

Please sign in to comment.