Change example syntax on unarchive module
This commit is contained in:
parent
d7e9fbe631
commit
c5921612d1
1 changed files with 12 additions and 4 deletions
|
@ -114,13 +114,21 @@ notes:
|
|||
|
||||
EXAMPLES = '''
|
||||
# Example from Ansible Playbooks
|
||||
- unarchive: src=foo.tgz dest=/var/lib/foo
|
||||
- unarchive:
|
||||
src: foo.tgz
|
||||
dest: /var/lib/foo
|
||||
|
||||
# Unarchive a file that is already on the remote machine
|
||||
- unarchive: src=/tmp/foo.zip dest=/usr/local/bin remote_src=yes
|
||||
- unarchive:
|
||||
src: /tmp/foo.zip
|
||||
dest: /usr/local/bin
|
||||
remote_src: yes
|
||||
|
||||
# Unarchive a file that needs to be downloaded (added in 2.0)
|
||||
- unarchive: src=https://example.com/example.zip dest=/usr/local/bin remote_src=yes
|
||||
- unarchive:
|
||||
src: "https://example.com/example.zip"
|
||||
dest: /usr/local/bin
|
||||
remote_src: yes
|
||||
'''
|
||||
|
||||
import re
|
||||
|
|
Loading…
Reference in a new issue