From 737a500a30f3cfd87f3a71ab76e8355610bd1c81 Mon Sep 17 00:00:00 2001 From: Jordan Borean Date: Wed, 14 Aug 2019 09:48:37 +1000 Subject: [PATCH] template - move backup to its own doc (#59893) * template - move backup to its own doc * Use the backup doc fragment for template --- lib/ansible/modules/files/template.py | 1 + lib/ansible/modules/windows/win_template.py | 6 ++++++ lib/ansible/plugins/doc_fragments/template_common.py | 7 ------- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/lib/ansible/modules/files/template.py b/lib/ansible/modules/files/template.py index a14c90213a8..3afcbae3d62 100644 --- a/lib/ansible/modules/files/template.py +++ b/lib/ansible/modules/files/template.py @@ -39,6 +39,7 @@ author: - Ansible Core Team - Michael DeHaan extends_documentation_fragment: +- backup - files - template_common - validate diff --git a/lib/ansible/modules/windows/win_template.py b/lib/ansible/modules/windows/win_template.py index 86898f24645..dff65320a98 100644 --- a/lib/ansible/modules/windows/win_template.py +++ b/lib/ansible/modules/windows/win_template.py @@ -15,6 +15,12 @@ module: win_template 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' diff --git a/lib/ansible/plugins/doc_fragments/template_common.py b/lib/ansible/plugins/doc_fragments/template_common.py index 0e7dd883658..bf997ff744d 100644 --- a/lib/ansible/plugins/doc_fragments/template_common.py +++ b/lib/ansible/plugins/doc_fragments/template_common.py @@ -39,13 +39,6 @@ options: - 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.