Custom Playbooks
Last updated
Last updated
Linux Control Center = 2.10.X or higher
This manual aims to present all the features that the LCC Playbooks module offers.
In the Linux Control Center (LCC), the Playbooks module plays an important role in administration, providing users with the ability to execute custom playbooks on hosts managed by the LCC.
Executing a playbook through the LCC provides a complete view of the process, allowing you to monitor progress in real time and generate detailed reports. In addition, execution can be performed by Workflow, which allows you to make dynamic decisions based on the results of each step.
To get started, access the LCC and click on Playbooks in the left side menu.
Click Create
Enter a name to identify the playbook in the Name field.
Click Upload File and choose the desired playbook from your computer.
Note that the playbook name will be displayed in the Current File field.
Click Save and the playbook will be saved in the LCC database.
Click on the Playbook that was created and you will see the following screens:
Screen that displays the date and time the playbook was created, the date and time of the last change and you can also change the information in the Name and Description fields. You can also download the file by clicking Download, delete it by clicking Delete and upload a new file by clicking Change File
Similar to Customizable Scripts, playbooks also have the ability to insert variables. This allows the same playbook to be executed at different times with different values, offering adaptability as needed. The variable format is ${:::Variable name:::}, where Variable name is the identifier of that variable.
After creating the playbook with the variable in this format and uploading the file to the console, it will be possible to change its value directly through the LCC web interface whenever necessary. The updated value will be automatically saved in the playbook file saved in the database.
See an example of implementation of this variable format
var_name: ${:::var_name:::}*
It is important to note that if variables are written with the same identifier/name, LCC will replace the value of the last variable entered by the user in all others. Therefore, it is recommended to use different names if the desired execution values are different.
The Content screen displays all the playbook content. The image below shows the variable mentioned in the previous topic.
On the Credentials screen, the LCC allows the Playbook to be executed with a different credential than the default lcc.local. It is possible to use Linux Credentials that are registered in the LCC console, Credentials from the Password Safe password vault by BeyondTrust through integration and through the LCC Hook Bridge Params functionality.
This functionality allows the Playbook to be executed only on a specific Linux Distribution. 1. Click Create
Click Release, choose the Linux Distribution that the playbook will run on, and click Save.
To run the playbook, simply access the Playbooks screen and click on Actions of the desired playbook.
Click Run
Choose which Host or Host Group the playbook will run on
Click Yes and the playbook will run immediately.