Check for certain package with specific version exists - Ansible

0 votes
Suppose I have a group called webservers which consists of 3 servers. I would like to check if a certain package with specific version exists or no. How do I do that?
Mar 6 in Ansible by Kavya
37 views

1 answer to this question.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
0 votes

Hey @Kavya, to check if a package is installed to a specific version, you can use the command in a similar manner:

$ ansible webservers -m yum -a "name=acme-1.5 state=present"
answered Mar 6 by Devika

Related Questions In Ansible

0 votes
1 answer

Ensure the package is latest version - Ansible

Ensure a package is at the latest ...READ MORE

answered Mar 6 in Ansible by Yogesh
33 views
0 votes
1 answer
0 votes
2 answers

Issue creating AWS VPC with Ansible

You can use the details given in ...READ MORE

answered Aug 16, 2018 in Ansible by Priyaj
• 56,100 points
117 views
0 votes
1 answer

How to use Ansible git module pull a branch with local changes?

You cannot achieve it using the git ...READ MORE

answered Jul 9, 2018 in Ansible by Atul
• 10,190 points
703 views
+13 votes
2 answers
0 votes
1 answer
0 votes
1 answer

Check is a package exists - Ansible

Hey @Kavya, to ensure a package is ...READ MORE

answered Mar 6 in Ansible by Yogesh
38 views
0 votes
1 answer

Mention Kubernetes version while using it with ansible

Hey @Dustin, The default value for roles is kube_version: ...READ MORE

answered Jan 22 in Ansible by Anushri
11 views

© 2018 Brain4ce Education Solutions Pvt. Ltd. All rights Reserved.
"PMP®","PMI®", "PMI-ACP®" and "PMBOK®" are registered marks of the Project Management Institute, Inc. MongoDB®, Mongo and the leaf logo are the registered trademarks of MongoDB, Inc.