Why doesn't ansible have an archive module?
Solution 1:
Module has been added in Ansible 2.2 as an extra module, see:
https://docs.ansible.com/ansible/archive_module.html
Solution 2:
It seems the Ansible folks welcome the idea, but demand has actually not been large enough for someone to step up and create such a module:
- related SO question with source code for
shell
approach - Module Request: Extract and Archive on GitHub
- trying to write a tar module/action_plugin Ansible mailing list post