summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam Doran <sdoran@ansible.com>2016-10-12 15:39:56 -0400
committerSam Doran <sdoran@ansible.com>2016-11-14 12:56:00 -0500
commit7fc150c33b702e95aa371d7d4132b0d3320f1408 (patch)
tree70c5c8dcc51cfd75c714cab4cc5bb5d77c9e0866
parent5ef188bcf15f8668f70f7eb96557bd240c2952f5 (diff)
downloadansible-modules-core-7fc150c33b702e95aa371d7d4132b0d3320f1408.tar.gz
Change examples syntax on assemble module
-rw-r--r--files/assemble.py14
1 files changed, 11 insertions, 3 deletions
diff --git a/files/assemble.py b/files/assemble.py
index 39edbdd3..d1d1bb34 100644
--- a/files/assemble.py
+++ b/files/assemble.py
@@ -95,13 +95,21 @@ extends_documentation_fragment:
EXAMPLES = '''
# Example from Ansible Playbooks
-- assemble: src=/etc/someapp/fragments dest=/etc/someapp/someapp.conf
+- assemble:
+ src: /etc/someapp/fragments
+ dest: /etc/someapp/someapp.conf
# When a delimiter is specified, it will be inserted in between each fragment
-- assemble: src=/etc/someapp/fragments dest=/etc/someapp/someapp.conf delimiter='### START FRAGMENT ###'
+- assemble:
+ src: /etc/someapp/fragments
+ dest: /etc/someapp/someapp.conf
+ delimiter: '### START FRAGMENT ###'
# Copy a new "sshd_config" file into place, after passing validation with sshd
-- assemble: src=/etc/ssh/conf.d/ dest=/etc/ssh/sshd_config validate='/usr/sbin/sshd -t -f %s'
+- assemble:
+ src: /etc/ssh/conf.d/
+ dest: /etc/ssh/sshd_config
+ validate: '/usr/sbin/sshd -t -f %s'
'''
import codecs