Unapplying a remediation
You can unapply a remediation that was previously applied to roll back a change when you need to revert it.
|
|
The Compliance Operator does not automatically resolve dependency issues that can occur between remediations. Users should perform a rescan after remediations are applied to ensure accurate results. |
Procedure
-
Set the
applyflag tofalse:$ oc -n openshift-compliance \ patch complianceremediations/rhcos4-moderate-worker-sysctl-net-ipv4-conf-all-accept-redirects \ --patch '{"spec":{"apply":false}}' --type=merge -
Verify that the remediation status has changed to
NotAppliedand the compositeMachineConfigobject is re-rendered to not include the remediation.All affected nodes with the remediation will be rebooted.