28.06.2018 · - name: remove the X Windows System packages shell: rpm -e --nodeps `yum list installed |grep xorg-X11* |cut -d ' ' -f1` I tried this manually and it works, Is there any separate module like rpm mpdule to execute this task in the ansible playbook.
Note. This module is part of ansible-core and included in all Ansible installations. In most cases, you can use the short module name yum_repository even without specifying the collections: keyword. However, we recommend you use the FQCN for easy linking to the module documentation and to avoid conflicting with other collections that may have the same module …
25.09.2020 · Install a .rpm Package Using the yum Module. In some cases, you will need to download the .rpm package and install it to the server. In this case, the Ansible yum module will help you to download the .rpm package from the web and install it on the Target server.. Let’s create a playbook to download the Remi rpm file and install it on the Target server.
One such module is the Ansible yum module. This module can remove, install, upgrade, downgrade, list packages, or packages groups with the help of YUM ...
This module supports yum (as it always has), this is known as yum3 / YUM3 / yum-deprecated by upstream yum developers. As of Ansible 2.7+, this module also supports YUM4, which is the "new yum" and it has an dnf backend. By default, this module will select the backend based on the ansible_pkg_mgr fact. validate_certs.
ansible.builtin.yum – Manages packages with the yum package manager · ansible-core and included in all Ansible installations. In most cases, you can use the ...