Ansible – Why No Archive Module?

ansible

Googling for Ansible create tar doesn't yield any good results and while there is an unarchive module, there's no archive module.

I'll probably solve it with the command module, but being new in Ansible it makes me think if I'm doing it wrong. I'm pretty sure I'm not the first one in need of taring source code to be uploaded to the production server.

So why is there no archive module and how does the community handle this use case?

Best Answer

Module has been added in Ansible 2.2 as an extra module, see:

https://docs.ansible.com/ansible/archive_module.html