![]() It saves a list of dictionaries describing each package to a variable yum_packages. To get a list of installed packages, you should use: - name: yum_command Read: A quick guide to DNF for yum users You can learn more. The main configuration file for YUM is at /etc/yum.conf, and all the repos are at /etc/. YUM can manage packages from installed repositories in the system or from. Regarding your example, which does not give you results - you have repeated twice the same argument list and the task should fail (it doesn't, which looks like an Ansible quirk). YUM performs dependency resolution when installing, updating, and removing software packages. No matter what you do, what method you use, the term "idempotent" is just not applicable. When you query current state, you don't describe the desired state. ![]() ![]() "Idempontent" means that the task will ensure the machine is in the desired state no matter how many times you run a certain task. You can't really talk about idempotence, when you are querying the current state of a machine. I can easily get it through using shell commands which is not idempotent ![]()
0 Comments
Leave a Reply. |