Change examples syntax on assemble module
This commit is contained in:
parent
c694fe6ca4
commit
8f097580ec
1 changed files with 11 additions and 3 deletions
|
@ -93,13 +93,21 @@ extends_documentation_fragment: files
|
|||
|
||||
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
|
||||
|
|
Loading…
Reference in a new issue