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.