summaryrefslogtreecommitdiff
path: root/lib/ansible/modules/assemble.py
diff options
context:
space:
mode:
Diffstat (limited to 'lib/ansible/modules/assemble.py')
-rw-r--r--lib/ansible/modules/assemble.py14
1 files changed, 7 insertions, 7 deletions
diff --git a/lib/ansible/modules/assemble.py b/lib/ansible/modules/assemble.py
index c93b4ff6..2b443ce8 100644
--- a/lib/ansible/modules/assemble.py
+++ b/lib/ansible/modules/assemble.py
@@ -17,7 +17,7 @@ description:
- Assembles a configuration file from fragments.
- Often a particular program will take a single configuration file and does not support a
C(conf.d) style structure where it is easy to build up the configuration
- from multiple sources. M(ansible.builtin.assemble) will take a directory of files that can be
+ from multiple sources. C(assemble) will take a directory of files that can be
local or have already been transferred to the system, and concatenate them
together to produce a destination file.
- Files are assembled in string sorting order.
@@ -36,7 +36,7 @@ options:
required: true
backup:
description:
- - Create a backup file (if V(true)), including the timestamp information so
+ - Create a backup file (if C(true)), including the timestamp information so
you can get the original file back if you somehow clobbered it
incorrectly.
type: bool
@@ -48,16 +48,16 @@ options:
version_added: '1.4'
remote_src:
description:
- - If V(false), it will search for src at originating/master machine.
- - If V(true), it will go to the remote/target machine for the src.
+ - If C(false), it will search for src at originating/master machine.
+ - If C(true), it will go to the remote/target machine for the src.
type: bool
default: yes
version_added: '1.4'
regexp:
description:
- - Assemble files only if the given regular expression matches the filename.
+ - Assemble files only if C(regex) matches the filename.
- If not set, all files are assembled.
- - Every V(\\) (backslash) must be escaped as V(\\\\) to comply to YAML syntax.
+ - Every C(\) (backslash) must be escaped as C(\\) to comply to YAML syntax.
- Uses L(Python regular expressions,https://docs.python.org/3/library/re.html).
type: str
ignore_hidden:
@@ -133,7 +133,7 @@ import tempfile
from ansible.module_utils.basic import AnsibleModule
from ansible.module_utils.six import b, indexbytes
-from ansible.module_utils.common.text.converters import to_native
+from ansible.module_utils._text import to_native
def assemble_from_fragments(src_path, delimiter=None, compiled_regexp=None, ignore_hidden=False, tmpdir=None):