Remediating Configuration Issues Using Red Hat Insights and Ansible Playbooks
Create playbooks in Insights to run with your Ansible workflow
Chapter 1. Remediation of configuration issues on RHEL systems
Red Hat Insights facilitates the remediation of rules issues on Red Hat Enterprise Linux (RHEL) systems in your infrastructure by providing resolution information for each rule, tailored to each system. You can remediate issues manually or, in most cases, create Ansible Playbooks to automate remediation procedures.
Chapter 2. Viewing remediation actions
Red Hat Insights analyzes your Red Hat Enterprise Linux (RHEL) infrastructure and shows you the actions you can take to remediate issues that can affect your systems.
- In the Insights console, go to Rules and check the box to Show Rules With Hits.
- Click on the name of a rule.
- Scroll down to view Affected Hosts to see all systems on which this rule is hitting.
- Click on a system and scroll down to see all the issues that are active on that system.
- For each issue, view the specific details about that rule + system pairing, a description of how the issue may be manifested on this system, and the steps to resolve the issue.
Chapter 3. Remediating rules on systems manually
Red Hat Insights provides users the steps to remediate issues manually for each rule + system pairing.
- In the Insights console, go to Rules to select the issue you want to resolve.
- Click on the name of the rule.
- Scroll down to Affected Hosts to see all systems on which this rule is hitting.
- Click on a system and scroll down to see the rules hitting on the system.
- For each rule, view the specific details about that rule + system pairing, a description of how the issue can affect the system, and the steps to resolve the issue on the system.
- Follow the instructions in Steps to resolve to remediate the issue on the system.
Chapter 4. Creating a playbook to automate remediations
Red Hat Insights enables users to automate rule remediation using Ansible Playbooks.
Look for an Ansible icon, which indicates whether there is a playbook available for that rule + system pairing. A blue icon indicates that a playbook is available. A grey icon with a line through it indicates that a playbook is not available.
For an individual system, identify the individual rules hitting on that system.
- Select an issue from Rules and select from the systems in the Affected Hosts list.
- Select a system from Inventory and click on the Insights tab to see rules active on that system.
- Click Remediate with Ansible to create a playbook for the rule + system pairing.
- To add the remediations to an Existing Playbook, select the desired playbook from the dropdown list, or create a New Playbook by providing a Playbook Name and clicking Next.
- Verify correct information in the Remediation Summary, toggle Auto Reboot if available and desired, then click Create Playbook.
- Locate your playbook in Remediations and download the yaml file.
- Add the yaml file to your Ansible workflow.
Chapter 5. Reference materials
To learn more about Red Hat Insights, the following resources might also be of interest: