summaryrefslogtreecommitdiff
path: root/files
diff options
context:
space:
mode:
authorFabio Alessandro Locati <me@fale.io>2016-12-01 14:19:36 +0000
committerJohn R Barker <john@johnrbarker.com>2016-12-01 14:19:36 +0000
commit199b78a364c1177dcdad242432a11d896e524c74 (patch)
treef4f1ee207b6fc4d2d19b8ded617e083fff259841 /files
parentf9131363ba958e558ea8023298e7ac1dd2411e37 (diff)
downloadansible-modules-extras-199b78a364c1177dcdad242432a11d896e524c74.tar.gz
Native YAML - files (#3608)
Diffstat (limited to 'files')
-rw-r--r--files/archive.py12
-rw-r--r--files/tempfile.py12
2 files changed, 17 insertions, 7 deletions
diff --git a/files/archive.py b/files/archive.py
index 36d2c423..7d27fb3e 100644
--- a/files/archive.py
+++ b/files/archive.py
@@ -63,13 +63,19 @@ notes:
EXAMPLES = '''
# Compress directory /path/to/foo/ into /path/to/foo.tgz
-- archive: path=/path/to/foo dest=/path/to/foo.tgz
+- archive:
+ path: /path/to/foo
+ dest: /path/to/foo.tgz
# Compress regular file /path/to/foo into /path/to/foo.gz and remove it
-- archive: path=/path/to/foo remove=True
+- archive:
+ path: /path/to/foo
+ remove: True
# Create a zip archive of /path/to/foo
-- archive: path=/path/to/foo format=zip
+- archive:
+ path: /path/to/foo
+ format: zip
# Create a bz2 archive of multiple files, rooted at /path
- archive:
diff --git a/files/tempfile.py b/files/tempfile.py
index 88bdf358..35969141 100644
--- a/files/tempfile.py
+++ b/files/tempfile.py
@@ -52,11 +52,15 @@ options:
'''
EXAMPLES = """
- - name: create temporary build directory
- tempfile: state=directory suffix=build
+- name: create temporary build directory
+ tempfile:
+ state: directory
+ suffix: build
- - name: create temporary file
- tempfile: state=file suffix=temp
+- name: create temporary file
+ tempfile:
+ state: file
+ suffix: temp
"""
RETURN = '''