Hi, It depend on what you want to achieve, the yum module can check if a package is installed or not then install or remove using the state parameter. However if you just want to check if a package is installed or not then something like this post: http://stackoverflow.com/questions/21892603/how-to-make-ansible-execute-a-shell-script-if-a-package-is-not-installed
but for yum the command would probably be: yum list installed <package-name> -Nico On Sunday, July 10, 2016 at 12:02:02 PM UTC-7, Pratik Bandarkar wrote: > > Hi, > > I am looking for some option in yum module to check if any specific > package is installed or not ? Can anyone help me on the same. > > Regards, > Pratik. > -- 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]. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/8a03ab1a-9d9f-41f1-809f-a79e649ea85d%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
