Remediating Configuration Issues Using Advisor and Ansible Playbooks
Create playbooks in the advisor service to run with your Ansible workflow
Abstract
Chapter 1. Overview of Insights for Red Hat Enterprise Linux advisor service remediations
The advisor service helps you resolve issues on Red Hat Enterprise Linux (RHEL) systems by providing resolution steps for each recommendation, tailored to each system. You can then remediate issues manually or create Ansible Playbooks to automate resolution procedures.
Chapter 2. Manually remediating advisor recommendations
The advisor service provides users with the steps to resolve issues manually for each rule/system pairing.
Procedure
- Navigate to the Red Hat Enterprise Linux > Advisor > Systems page and log in if necessary.
- Locate and select the system on which to resolve the recommendations.
- Locate and select the recommendation to resolve.
- Expand the description, scroll past Detected issues, and view the specific Steps to resolve the recommendation on that system.
- Follow the Steps to resolve to remediate the issue on the system.
Chapter 3. Creating Ansible Playbooks to automate remediations
Users of the advisor service can create Ansible Playbooks to automate the remediation of recommendations.
Look for an Ansible icon, which indicates whether there is a playbook available for a specific rule + system pairing. A blue Ansible icon indicates that a playbook is available. A grey icon with a line through it indicates that a playbook is not available.
The following procedure creates a playbook to remediate an individual recommendation on systems impacted by it.
Procedure
- Navigate to Red Hat Enterprise Linux > Advisor > Recommendations and log in if necessary.
- Locate and click on the recommendation to resolve.
- In the Affected systems list, check the box next to each system you want to add to the playbook.
- Click Remediate.
Select whether to add the remediations to an existing or new playbook and take the following action:
- Click Existing Playbook and select the desired playbook from the dropdown list, OR
- Click Create new Playbook and add a playbook name.
- Click Next.
Review the information in the summary.
- Scroll to the bottom of the summary and toggle Auto Reboot if available and desired.
- Click Create.
Verification steps
- Select Remediations in the Red Hat Insights for Red Hat Enterprise Linux services menu.
- Locate the playbook you just created and check the box next to it.
- Download the playbook using the Download playbook link.
3.1. Creating Ansible Playbooks to remediation multiple recommendations on an individual system
Users of the advisor service can create Ansible Playbooks to automate the remediation of recommendations.
Look for an Ansible icon, which indicates whether there is a playbook available for a specific rule + system pairing. A blue Ansible icon indicates that a playbook is available. A grey icon with a line through it indicates that a playbook is not available.
Procedure
- Navigate to Red Hat Enterprise Linux > Advisor > Systems and log in if necessary.
- Locate and select the system for which to create the playbook.
- Click the check box next to each recommendation you want to resolve.
- Click Remediate.
Select whether to add the remediations to an existing or new playbook and take the following action:
- Click Existing Playbook and select the desired playbook from the dropdown list, OR
- Click Create new Playbook and add a playbook name.
- Click Next.
Review the information in the summary.
- Scroll to the bottom of the summary and toggle Auto Reboot if available and desired.
- Click Create.
Chapter 4. Reference materials
To learn more about the advisor service, see the following resources:
Providing feedback on Red Hat documentation
We appreciate your feedback on our documentation. To provide feedback, highlight text in a document and add comments.
Prerequisites
- You are logged in to the Red Hat Customer Portal.
- In the Red Hat Customer Portal, the document is in the Multi-page HTML viewing format.
Procedure
To provide your feedback, perform the following steps:
Click the Feedback button in the top-right corner of the document to see existing feedback.
NoteThe feedback feature is enabled only in the Multi-page HTML format.
- Highlight the section of the document where you want to provide feedback.
Click the Add Feedback pop-up that appears near the highlighted text.
A text box appears in the feedback section on the right side of the page.
Enter your feedback in the text box and click Submit.
A documentation issue is created.
- To view the issue, click the issue link in the feedback view.