Bootstrap FreeKB - Ansible - uninstall delete remove package using the yum module
Ansible - uninstall delete remove package using the yum module

Updated:   |  Ansible articles

If you are not familiar with modules, check out Ansible - Getting Started with Modules.

The yum module is used to install packages on a Red Hat distribution of Linux on the managed node (e.g. the target system). When state: absent is used, the package will be uninstalled. In this example, if the wget package will be removed.

- name: yum remove wget
  yum:
    name: wget
    state: absent

 




Did you find this article helpful?

If so, consider buying me a coffee over at Buy Me A Coffee



Comments


Add a Comment


Please enter 4d6c48 in the box below so that we can be sure you are a human.