I know the package module has different options then the ansible.builtin.yum module, but if you use the yum module - it has an 'autoremove' parameter. This auto remove parameter removes all 'leaf' packages from the system that were originally installed as dependencies for user-installed packages but which are no longer required by any such package. I haven't tested this extensively, but it should be used with "state = absent"
I'm personally a paranoid person, so test / test / test :) Chris On Wed, Jan 25, 2023 at 3:44 AM Fabiuscom <[email protected]> wrote: > Hello, I need some information: if I want to install a patch using > ansible, for example RHSA-2000:2023 and then I want to rollback because the > patch has "brought" problems to the system, what could be a valid way to > follow? Thank you > > -- > You received this message because you are subscribed to the Google Groups > "Ansible Project" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/ansible-project/cce52b18-6e14-4df7-9939-064f71c25895n%40googlegroups.com > <https://groups.google.com/d/msgid/ansible-project/cce52b18-6e14-4df7-9939-064f71c25895n%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CAJ%2BCprqmedD18CUZsLG90qmgSoKMMk8h0iPF0Ub%2Bh%2BW7wZc9rA%40mail.gmail.com.
