Chapter 15. Applying a generated Ansible playbook

When troubleshooting issues with SELinux, the web console is able to generate a shell script or an Ansible playbook that you can then export and apply for more machines.

Prerequisites

Procedure

  1. Click SELinux.
  2. Click "View the automation script" on the upper right side.

    A window with the generated script opens. You can navigate between a shell script and an Ansible playbook generation options tab.

    cockpit ansible playbook generated

  3. Click the Copy to clipboard button to select the script or playbook and apply it.

As a result, you have an automation script that you can apply to more machines.

Additional resources