Thank you for reading this post, don't forget to subscribe!
1 2 3 4 5 6 |
- name: Maldet | Unarchive copied package unarchive: src: /root/downloads/maldetect-current.tar.gz dest: /root/downloads/maldet/ extra_opts: [--strip-components=1] remote_src: yes |
Вся суть в дополнительном параметре —strip-components=1, который «наследуется» от tar