On 1/21/14, 9:34 AM, Mark Phillips wrote:
They'd also like to be able to review their estate for compliance -
initially it'll be package versions, I guess (they're an RPM shop). I'm
pondering if I could also do this bit with Ansible - but off hand I
can't imagine how I'd approach that.
Does anybody have any thoughts and/or experience? Is it a daft thing to
even contemplate? Am I thinking of pushing a square peg into a round hole?
Any input will be greatly appreciated.
You could create a fact module that gathers facts about what packages
are installed (essentially an rpm -qa stuffed into a dictionary).
This information can be used in fail tasks to fail if the appropriate
packages are not installed.
This would be different than the normal operation of Ansible, which
would be to just state that you wish certain packages be installed, and
Ansible would tell you if they already are, or install them if they aren't.
-jlk
--
You received this message because you are subscribed to the Google Groups "Ansible
Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.