Ansible - yum module (uninstall delete remove package)

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

 



Add a Comment




We will never share your name or email with anyone. Enter your email if you would like to be notified when we respond to your comment.





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




Comments

Web design by yours truely - me, myself, and I   |   jeremy.canfield@freekb.net   |