Remediating Configuration Issues Using Advisor and Ansible Playbooks

Red Hat Insights 2020-10

Create playbooks in Advisor to run with your Ansible workflow

Red Hat Customer Content Services

Abstract

Create Ansible Playbooks to automate remediation of issues identified by the Advisor service.
Providing Feedback: If you have a suggestion to improve this documentation, or find an error, submit a Bugzilla report at http://bugzilla.redhat.com. Select the Cloud Software Services (cloud.redhat.com) product and use the Documentation component.

Chapter 1. Advisor service remediations overview

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

  1. Navigate to the Advisor service > Systems page and log in if necessary.
  2. Locate and select the system on which to resolve the recommendations.
  3. Locate and select the recommendation to resolve.
  4. Expand the description, scroll past Detected issues, and view the specific Steps to resolve the recommendation on that system.
  5. Follow the Steps to resolve to remediate the issue on the system.

Chapter 3. Creating Ansible Playbooks to automate remediations

Advisor service users can create Ansible Playbooks to automate the remediation of recommendations.

Note

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 to create a playbook to remediate an individual recommendation on systems impacted by it

  1. Navigate to Advisor service > Recommendations and log in if necessary.
  2. Locate and click on the recommendation to resolve.
  3. In the Affected systems list, check the box next to each system you want to add to the playbook.
  4. Click Remediate.
  5. Select whether to add the remediations to an existing or new playbook and take the following action:

    1. Click Existing Playbook and select the desired playbook from the dropdown list, OR
    2. Click Create new Playbook and add a playbook name.
    3. Click Next.
  6. Review the information in the summary.

    1. Scroll to the bottom of the summary and toggle Auto Reboot if available and desired.
    2. Click Create.

Verification steps

  1. Select Remediations in the Red Hat Insights services menu.
  2. Locate the playbook you just created and check the box next to it.
  3. Download the playbook using the Download playbook link.

Procedure to create a playbook to remediate multiple recommendations on an individual system.

  1. Navigate to Advisor service > Systems and log in if necessary.
  2. Locate and select the system for which to create the playbook.
  3. Click the check box next to each recommendation you want to resolve.
  4. Click Remediate.
  5. Select whether to add the remediations to an existing or new playbook and take the following action:

    1. Click Existing Playbook and select the desired playbook from the dropdown list, OR
    2. Click Create new Playbook and add a playbook name.
    3. Click Next.
  6. Review the information in the summary.

    1. Scroll to the bottom of the summary and toggle Auto Reboot if available and desired.
    2. Click Create.

Chapter 4. Reference materials

To learn more about the Advisor service, see the following resources:

Legal Notice

Copyright © 2020 Red Hat, Inc.
The text of and illustrations in this document are licensed by Red Hat under a Creative Commons Attribution–Share Alike 3.0 Unported license ("CC-BY-SA"). An explanation of CC-BY-SA is available at http://creativecommons.org/licenses/by-sa/3.0/. In accordance with CC-BY-SA, if you distribute this document or an adaptation of it, you must provide the URL for the original version.
Red Hat, as the licensor of this document, waives the right to enforce, and agrees not to assert, Section 4d of CC-BY-SA to the fullest extent permitted by applicable law.
Red Hat, Red Hat Enterprise Linux, the Shadowman logo, the Red Hat logo, JBoss, OpenShift, Fedora, the Infinity logo, and RHCE are trademarks of Red Hat, Inc., registered in the United States and other countries.
Linux® is the registered trademark of Linus Torvalds in the United States and other countries.
Java® is a registered trademark of Oracle and/or its affiliates.
XFS® is a trademark of Silicon Graphics International Corp. or its subsidiaries in the United States and/or other countries.
MySQL® is a registered trademark of MySQL AB in the United States, the European Union and other countries.
Node.js® is an official trademark of Joyent. Red Hat is not formally related to or endorsed by the official Joyent Node.js open source or commercial project.
The OpenStack® Word Mark and OpenStack logo are either registered trademarks/service marks or trademarks/service marks of the OpenStack Foundation, in the United States and other countries and are used with the OpenStack Foundation's permission. We are not affiliated with, endorsed or sponsored by the OpenStack Foundation, or the OpenStack community.
All other trademarks are the property of their respective owners.