Running playbooks
Learn about the requirements to run playbooks and the methods to initiate playbook runs.
Before you begin
-
You must have the Automate Playbook execute permission on the playbook content set to initiate playbook runs.
-
Manually-started playbook runs use the computer management group permissions of the user and persona who initiates the playbook run. Scheduled playbook runs use the computer management group permissions of the user and persona who created the playbook schedule. Playbook runs started or scheduled by different users and personas might target different sets of endpoints due to permission differences.
-
Users must have content set and solution permissions to access all content and solutions used in the playbook to run the playbook, and content set permission to the content set to which a playbook is assigned. A playbook might define content as a default parameter value, such as a package. Users that do not have permission to access the default content must assign content to which they have permission to access before starting the playbook run.
-
You cannot change playbook step variable values if you restart or resume a playbook run. Variable values apply to the entirety of a playbook run. Instead, start a new playbook run to define different variable values.
-
Multiple users can initiate playbook runs from the same version of a playbook. Playbook runs initiated by multiple users can run concurrently.
-
A user can have multiple concurrent runs for a playbook if they are started manually rather than by schedule.
-
Each user can create multiple schedules per playbook. One playbook can be associated with multiple schedules created by multiple users.
-
If a playbook author user account is disabled or locked, playbook runs fail. Either enable or unlock the user account, or clone the playbook to a different active user account.
-
If action approval is enabled, note the following:
-
Automate will not deploy any action requiring approval until it is approved. Depending on the playbook configuration, the playbook will then either continue to the next step or fail.
-
Automate waits up to 30 days for approval. If the action is not approved and the Condition to Start Next Step criteria is set to anything other than None, the playbook run fails. But if the condition is set to None, the run continues.
-
Actions that require approval show as Requires Action Approval in the playbook run history and as Waiting for action approval in the ring status.
For more information about action approval, see Managing action approval.
-
Manually run playbook
Perform the following steps to manually start a playbook run.
Any user with the Automate Playbook execute permission on the playbook content set and permissions to all content and solutions used in the playbook can manually run the playbook.
Schedule playbook runs
You can schedule playbooks to run automatically on a recurring schedule or as a single run. This can be done by creating a schedule on an existing playbook. Playbook runs automatically start for each associated schedule at the configured time. Scheduled playbook runs use the permissions of the user and persona that created the schedule. If you schedule a playbook with parameters, you enter variable values when you create the schedule. Every scheduled playbook run uses those defined variable values.
Each user and persona can create multiple schedules per playbook, but can only have one active playbook run per playbook version. If a user and persona have an active playbook run for a playbook version, and a schedule created by that user and persona would start another playbook run for that playbook version, the scheduled playbook run does not start, and the playbook attempts to start another playbook run on the next scheduled occurrence.
Note the following:
-
If you update, disable, or delete a playbook schedule, any in-progress playbook run started on that schedule continues to run.
-
If a playbook contains at least one step field parameter, when you create a playbook schedule, you define the parameter values that each scheduled run uses.
-
Saving any playbook updates also disables all associated playbook schedules created by other users, because updates might affect how a playbook run affects an endpoint. Schedules that you created for this playbook remain enabled. All in-progress playbook runs associated with this playbook continue to run, including those started by another user's schedule.
-
If a playbook step requires sensors and any are missing, such as if one was deleted, the scheduled playbook run will fail.
-
If three consecutive scheduled playbook runs for the same playbook version fail, the schedule automatically disables. Updating a playbook creates a new playbook version and resets the failed playbook run count.
-
Because each playbook might contain multiple schedules, verify that scheduled playbook run start times do not overlap, to reduce resource use and prevent unnecessary playbook runs.
-
If you clone a playbook schedule, update the cloned schedule to avoid overlap in playbook run start times, especially if both the original and cloned schedule use the same user and persona permissions.
-
When a playbook scheduled for a single run passes the scheduled start time, Automate removes the single run schedule from the Schedules list and adds a run in the playbook run history.
-
If a playbook scheduled for a single run is edited or cloned, it defaults to Enabled.
-
If you schedule a playbook run far ahead in time, ensure the start date falls within a practical timeframe that supports operational needs. Start dates beyond the year 2100 are not supported.
-
If a step with parameter overrides uses a package that is out of sync with its source, a warning banner appears when you review parameter values for the schedule. If the source package still exists, you can view the current version of the package or update to it directly from there, without opening the playbook to edit it. If the source package is deleted, select a different package for the step. If you update the package for this schedule, the change affects only this schedule. It does not change the package that the playbook or other schedules and triggers use.
Create a playbook schedule
To set a schedule on an existing playbook:
Edit or clone a playbook schedule
To edit or clone an existing schedule:
Disable or delete a playbook schedule
Enable a disabled playbook schedule
- From the Main menu, go to .
- In the Playbooks tab, select a playbook.
- Click the Schedules tab.
- For a disabled schedule, click Actions
then click Enable.
Trigger playbook runs
You can create playbook triggers to automatically respond to endpoint conditions, reducing the need for manual monitoring or short-interval scheduled playbook runs. Automate monitors your endpoints and automatically starts a playbook run when the trigger conditions are met. For example, you might create a trigger that starts a playbook run when any endpoints in your target set report application crashes within the past 24 hours.
Note the following:
-
Triggered playbook runs use the computer management group permissions of the user and persona who created the trigger.
-
Triggered playbook runs start immediately when any endpoints meet the conditions. Automate does not wait for all potential matches.
-
Automate pauses monitoring while a triggered playbook run is in progress, so no additional runs start until the current one finishes.
-
Endpoints that come online or meet criteria while the triggered playbook is in progress might be missed until the next monitoring cycle.
-
Editing a playbook automatically disables triggers created by other users and personas, while triggers created by the current user and persona remain enabled.
-
Only the user and persona who created the trigger can edit, enable, or disable it.
-
If a playbook contains at least one step field parameter, when you configure a playbook trigger, you define the parameter values that each triggered playbook run uses.
-
If a playbook step requires sensors and any are missing, such as if one was deleted, the triggered playbook run will fail.
-
Automate automatically disables a trigger for any of the following reasons:
-
Three consecutive triggered playbook runs for the same trigger fail.
-
Another user edits the playbook.
-
The API token associated with the user and active persona who created the trigger expires.
-
Playbook parameters are edited and require review. To re-enable, edit the trigger to confirm the updated parameter values and then save.
-
-
If a step with parameter overrides uses a package that is out of sync with its source, a warning banner appears when you review parameter values for the trigger. If the source package still exists, you can view the current version of the package or update to it directly from there, without opening the playbook to edit it. If the source package is deleted, select a different package for the step. If you update the package for this trigger, the change affects only this trigger. It does not change the package that the playbook or other schedules and triggers use.
Create a playbook trigger
Create a playbook trigger and specify the endpoints and conditions that must be met for Automate to automatically start a playbook run.
- From the Main menu, go to .
- In the Playbooks tab, select a playbook, click Actions, and then select Create Trigger.
- In the Target Endpoints section, add targeting criteria for endpoints.
- Computer Groups provides a list of computer groups. Each group defines a set of endpoints that you want to manage as a group.
- Question Criteria filters on all endpoints with a specific set of criteria. For example, you can type Operating System contains win in the Filter Bar or use the Filter Builder to target all Windows endpoints within those groups.
- In the Trigger Conditions section, add conditions that must be met for the playbook run to start. Click Question Criteria and filter on all endpoints with a specific set of criteria. For example, you can type Application Crashes Yesterday in the Filter Bar or use the Filter Builder to filter endpoints to the results of the Application Crashes Yesterday sensor.
- In the Run Playbook Scope section, select the scope for the targeted endpoints.
- Limited endpoints runs on endpoints that meet both the playbook step targeting and the trigger target and condition.
- All Targeted Endpoints runs on all endpoints targeted by the playbook step targeting, regardless of the trigger target and condition.
- If the playbook contains parameters, in the Steps section, define parameter values for each triggered playbook run to use.
- Click Create.
Edit or clone a playbook trigger
- From the Main menu, go to .
- In the Playbooks tab, select a playbook.
- Click the Triggers tab.
- You have the following options:
- Click Actions
, then click Edit to edit the trigger.
- Click Actions
, then click Clone to create a copy of the trigger.
- Click Actions
- If the trigger was disabled because the playbook parameters were edited and require review, review and confirm the parameter values in the Steps section.
- When finished, click Save.
Enable a disabled playbook trigger
- From the Main menu, go to .
- In the Playbooks tab, select a playbook.
- Click the Triggers tab.
- For a disabled trigger, click Actions
, then click Enable.
Disable or delete a playbook trigger
- From the Main menu, go to .
- In the Playbooks tab, select a playbook.
- Click the Triggers tab.
- You have the following options:
- Click Actions
, then click Disable to disable the trigger.
- Click Actions
, then click Delete to delete the trigger.
- Click Actions
Run playbook from Gateway
You can use Tanium Gateway to create playbooks, add scheduling to playbooks, and to initiate manual playbook runs.
For more information about how to run playbooks from Gateway, see Reference: Gateway examples for Automate.
Run playbook from Reporting report
You can create a playbook run from a report in Tanium Reporting using an existing playbook. For more information, see Tanium Reporting User Guide: Working with Reporting reports.
Select one or more endpoints to define a limiting group. The limiting group constrains all playbook step targeting to only those endpoints that are members of the limiting group. Steps that target endpoints first check for limiting group membership, and then apply step targeting to the limiting group membership to determine the actual targeted endpoints.
Run playbook from Reporting dashboard
You can create a playbook run from a dashboard action panel in Tanium Reporting using an existing playbook. For more information, see Working with Reporting dashboards.
The endpoints in the panel define a limiting group. The limiting group constrains all playbook step targeting to only those endpoints that are members of the limiting group. Steps that target endpoints first check for limiting group membership, and then apply step targeting to the limiting group membership to determine the actual targeted endpoints.
Run playbook from Interact
You can create a playbook run from Tanium™ Interact. After you issue a question, analyze the results, and determine which endpoints need automated workflows, you can deploy a series of actions as steps using an existing playbook. You can run a playbook multiple times to streamline and simplify your business processes.
Select one or more endpoints to define a limiting group. The limiting group constrains all playbook step targeting to only those endpoints that are members of the limiting group. Steps that target endpoints first check for limiting group membership, and then apply step targeting to the limiting group membership to determine the actual targeted endpoints.
Initiate an existing playbook
- Issue a dynamic question (see Overview of free-form questions) or a saved question (see Issue a saved question).
- When the Question Results page shows the results, select up to 100 rows for the endpoints that require the playbook.
- Click Start a Playbook. The Select a Playbook dialog provides the following options for finding specific playbooks and assessing whether they are appropriate for the target endpoints:
- Enter a text string that matches all or part of a playbook name in the Filter items
field to find a specific playbook.
- Expand
the Limiting Group to see the syntax of the targeting question. Click the endpoint count
to issue the question and see the results in a new browser tab.
- Expand
a playbook to see its steps.
- Enter a text string that matches all or part of a playbook name in the Filter items
- Click Review Playbook in the row for the playbook that you want, review the playbook settings to ensure they match your expectations, and click Start.
For information about viewing, running, or creating a playbook, see Tanium Automate User Guide.
Pause playbook run
When you pause a playbook run, the run pauses after the current step completes. You can resume a playbook run after you pause the run. To pause a playbook run, you must have the same permissions as required to run the playbook. For more information, see Before you begin.
- From the Main menu, go to , and then open the Playbook Runs tab.
- In the Playbooks tab, find the row for the playbook, click Actions
, and then select Pause.
Resume playbook run
You can resume a playbook run that was previously paused. To resume a playbook run, you must have the same permissions as required to run the playbook. For more information, see Before you begin.
- From the Main menu, go to , and then open the Playbook Runs tab.
- In the Playbooks tab, find the row for the playbook, click Actions
, and then select Resume.
Stop playbook run
To stop a playbook run, you must have the same permissions as required to run the playbook. For more information, see Before you begin.
When you stop a playbook run, the behavior of the current step depends on the step type. Targeting steps such as Deploy Action and Verify Condition continue to run on endpoints until they complete or time out. Non-targeting steps such as Wait, Manual Instruction, and User Confirmation end immediately. Regardless of the step type, the stopped playbook no longer logs additional activity. Stopped playbook runs cannot be restarted.
- From the Main menu, go to , and then open the Playbook Runs tab.
- In the Playbooks tab, find the row for the playbook, click Actions
, and then select End.