From 429ab56e1484ac993bc790a654548e158f95e79e Mon Sep 17 00:00:00 2001 From: James Cammarata Date: Wed, 1 Oct 2014 20:30:25 -0500 Subject: [PATCH] Adding file doc fragment to those modules in files/ missing it --- lib/ansible/modules/files/ini_file.py | 1 + lib/ansible/modules/files/lineinfile.py | 1 + lib/ansible/modules/files/replace.py | 1 + lib/ansible/modules/files/unarchive.py | 1 + 4 files changed, 4 insertions(+) diff --git a/lib/ansible/modules/files/ini_file.py b/lib/ansible/modules/files/ini_file.py index 83a980f5ba..756f2732a8 100644 --- a/lib/ansible/modules/files/ini_file.py +++ b/lib/ansible/modules/files/ini_file.py @@ -23,6 +23,7 @@ DOCUMENTATION = ''' --- module: ini_file short_description: Tweak settings in INI files +extends_documentation_fragment: files description: - Manage (add, remove, change) individual settings in an INI-style file without having to manage the file as a whole with, say, M(template) or M(assemble). Adds missing diff --git a/lib/ansible/modules/files/lineinfile.py b/lib/ansible/modules/files/lineinfile.py index e2e7590980..c72b7f9d9a 100644 --- a/lib/ansible/modules/files/lineinfile.py +++ b/lib/ansible/modules/files/lineinfile.py @@ -28,6 +28,7 @@ DOCUMENTATION = """ --- module: lineinfile author: Daniel Hokka Zakrisson, Ahti Kitsik +extends_documentation_fragment: files short_description: Ensure a particular line is in a file, or replace an existing line using a back-referenced regular expression. description: diff --git a/lib/ansible/modules/files/replace.py b/lib/ansible/modules/files/replace.py index 57b522dd77..b7b75a9604 100644 --- a/lib/ansible/modules/files/replace.py +++ b/lib/ansible/modules/files/replace.py @@ -26,6 +26,7 @@ DOCUMENTATION = """ --- module: replace author: Evan Kaufman +extends_documentation_fragment: files short_description: Replace all instances of a particular string in a file using a back-referenced regular expression. description: diff --git a/lib/ansible/modules/files/unarchive.py b/lib/ansible/modules/files/unarchive.py index 657e464937..b632aff3f0 100644 --- a/lib/ansible/modules/files/unarchive.py +++ b/lib/ansible/modules/files/unarchive.py @@ -24,6 +24,7 @@ DOCUMENTATION = ''' module: unarchive version_added: 1.4 short_description: Copies an archive to a remote location and unpack it +extends_documentation_fragment: files description: - The M(unarchive) module copies an archive file from the local machine to a remote and unpacks it. options: