From 72657ce81510236c81d8d0255e40727c1794b771 Mon Sep 17 00:00:00 2001 From: Kassian Sun Date: Tue, 3 Apr 2018 17:03:11 +0800 Subject: [PATCH] Add example to clear the usage of `extra_opts` (#31873) --- lib/ansible/modules/files/unarchive.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lib/ansible/modules/files/unarchive.py b/lib/ansible/modules/files/unarchive.py index 44651cf994a..a6a95691901 100644 --- a/lib/ansible/modules/files/unarchive.py +++ b/lib/ansible/modules/files/unarchive.py @@ -118,6 +118,14 @@ EXAMPLES = r''' src: https://example.com/example.zip dest: /usr/local/bin remote_src: yes + +- name: Unarchive a file with extra options + unarchive: + src: /tmp/foo.zip + dest: /usr/local/bin + extra_opts: + - --transform + - s/^xxx/yyy/ ''' import binascii