This appears to be the most convenient way to manage packages, but I advise you to avoid using the package module in any situation. The package module manages packages using whichever package manager is present on the remote host, such as yum, apt or dnf. When to use the yum module vs package module Debian based Linux distributions such as Debian and Ubuntu use the apt package manager, so you should use the apt module for those distros. The yum module manages packages using the yum package manager, which is only available on Red Hat Enterprise Linux and CentOS. apt module - Debian based Linux distributions such as Debian and Ubuntu.yum module - Red Hat based Linux distributions such as Red Hat Enterprise Linux and CentOS.I recommend always using the update_cache: true parameter when installing or updating packages, which forces yum to check if the package cache is out of date and it update it if needed. Most systems require root/superuser permissions to manage packages, which means that become: true is required. How to install package groups with the yum moduleĪnsible’s yum module is used to manage packages with the yum package manager, which is the default on Red Hat based Linux distributions such as Red Hat Enterprise Linux and CentOS.How to list available packages with the yum module.How to downgrade a package with the yum module.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |