Patching System with rollback function

56 views
Skip to first unread message

Fabiuscom

unread,
Jan 25, 2023, 3:44:29 AM1/25/23
to Ansible Project
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

Vandana Thakur

unread,
Jan 25, 2023, 4:26:23 AM1/25/23
to : Ansible Project
You may use block and rescue module in ansible to do that.


On Wed, Jan 25, 2023, 2:14 PM Fabiuscom <fpie...@redhat.com> 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 ansible-proje...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/cce52b18-6e14-4df7-9939-064f71c25895n%40googlegroups.com.

fabiuscom1

unread,
Jan 25, 2023, 5:22:11 AM1/25/23
to Ansible Project

ok, but this for immediately when i run the playbook, but if i want return back after some days?

Chris

unread,
Jan 25, 2023, 6:11:28 AM1/25/23
to ansible...@googlegroups.com

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 <fpie...@redhat.com> 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

--
Reply all
Reply to author
Forward
0 new messages