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.
-
From the Main menu, go to .
The Automate Overview page appears with the Playbooks tab open in the Playbooks section.
-
Click a Playbook Name to open the playbook.
-
Click Start.
Note: The Start button is disabled if you do not have permission to run the playbook, or if there is another run of the same playbook instance that is already active. -
If the playbook has parameters, the Review Playbook Parameters page appears, and you can review the parameter values. You can also perform the following actions:
-
To update a value, click Review Parameters
. In the Review Parameters dialog, edit the value, and then click Apply.
-
To revert updated parameter values to their defaults, click Restore Default Values.
-
-
Click Start Playbook.
-
If the playbook contains any manual steps, such as Manual Instruction and Require User Confirmation steps, a Tanium user must perform those steps when the playbook reaches the steps.
-
From the Main menu, go to . Go to the Playbook Runs tab in the Playbooks section.
-
Click a Playbook Name to open the playbook run.
-
Expand the manual step or click Expand All to expand all steps in the playbook run.
-
Follow any included instructions and add any comments.
-
Complete the manual step.
-
For Manual Instruction steps, click Mark Complete.
-
For Require User Confirmation steps, click Continue.
-
-
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.
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.
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 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.
- Issue a dynamic question (see Issue a free-form question) 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.
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.