Red Hat Bugzilla – Bug 1298409
Missing tar dependency
Last modified: 2016-01-13 23:13:49 EST
Description of problem:
When using the unarchive module ansible appears to call /usr/bin/gtar (at least on EL7) but there is no Requires: tar line in the spec.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. I don't know how to reproduce this because all of my images have tar already installed.
I initially thought the problem I had was that tar wasn't installed but I later figured out that the destination directory didn't exist. I thought you might want to include this for completeness. I assume build will also require tar because the source is currently downloaded in a tar ball.
So, we don't actually add requires to the package for module needs.
Modules run on any arbitrary hosts you are managing, so a requires wouldn't help any there (they likely won't have ansible package installed). They could help on the management host itself, but if we required everything from every module there it would bloat the ansible package footprint gigantically for almost no gain.
If the error the module returns is poor, we should look at making a upstream change to the module to make it more clear what the host needs to have installed.