1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Change example syntax on unarchive module

This commit is contained in:
Sam Doran 2016-10-12 17:44:47 -04:00 committed by Matt Clay
parent d7e9fbe631
commit c5921612d1

View file

@ -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