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 may use block and rescue module in ansible to do that.
https://docs.ansible.com/ansible/latest/playbook_guide/playbooks_blocks.html#id2
ok, but this for immediately when i run the playbook, but if i want return back after some days?
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