gz and bz2 Not Supported by unarchive
Encountered this issue:
1The full traceback is:
2 File "/tmp/ansible_f1UXSi/ansible_module_unarchive.py", line 151, in <module>
3 from shlex import quote
4
5fatal: [206.81.5.18]: FAILED! => {
6 "changed": false,
7 "invocation": {
8 "module_args": {
9 "attributes": null,
10 "backup": null,
11 "content": null,
12 "creates": null,
13 "delimiter": null,
14 "dest": "/root/",
15 "directory_mode": null,
16 "exclude": [],
17 "extra_opts": [],
18 "follow": false,
19 "force": null,
20 "group": null,
21 "keep_newer": false,
22 "list_files": false,
23 "mode": null,
24 "owner": null,
25 "regexp": null,
26 "remote_src": true,
27 "selevel": null,
28 "serole": null,
29 "setype": null,
30 "seuser": null,
31 "src": "/root/my-files-2019-07-23.sql.gz",
32 "unsafe_writes": null,
33 "validate_certs": true
34 }
35 },
36 "msg": "Failed to find handler for \"/root/my-files-2019-07-23.sql.gz\". Make sure the required command to extract the file is installed. Command \"/bin/tar\" could not handle archive. Command \"/usr/bin/unzip\" could not handle archive."
37}
Is unsupported per https://github.com/ansible/ansible-modules-core/issues/3241
Use the following instead: