Running playbooks

Learn about the requirements to run playbooks and the methods to initiate playbook runs.

Note: Automate supports up to 1000 concurrent in-progress playbook runs. If this maximum is reached, additional scheduled or ad-hoc playbook runs do not start immediately, and are instead added to a first in, first out (FIFO) queue. The queued playbook runs start only after the number of concurrent in-progress playbook runs falls below the maximum. Overall Automate performance might be negatively impacted if more complex playbook runs, which consume more resources than simpler playbook runs, are in progress. More complex playbooks, for example, might have a large number of steps, or target a large number of endpoints to deploy packages. In addition, if a playbook is scheduled to run frequently, this might consume more resources than a playbook scheduled to run on an infrequent basis. Periodically review playbook schedules and in-progress playbook runs to help ensure reasonable resource use.
Important: For the best results, do not configure a playbook that might take more than 90 days to complete. Playbook runs have a maximum lifetime of 90 days, after which the playbook run immediately ends. In-flight actions that started because of the playbook run, such as deploying a Tanium package to endpoints, complete as expected, but in-flight functionality specific to a playbook run, such as a Manual Instruction step, does not complete.

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.

  1. From the Main menu, go to Automate > Overview.

    The Automate Overview page appears with the Playbooks tab open in the Playbooks section.

  2. Click a Playbook Name to open the playbook.

  3. 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.
  4. 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 edit. In the Review Parameters dialog, edit the value, and then click Apply.

    • To revert updated parameter values to their defaults, click Restore Default Values.

  5. Click Start Playbook.

  6. 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.

    1. From the Main menu, go to Automate > Overview. Go to the Playbook Runs tab in the Playbooks section.

    2. Click a Playbook Name to open the playbook run.

    3. Expand the manual step or click Expand All to expand all steps in the playbook run.

    4. Follow any included instructions and add any comments.

    5. 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: To schedule runs, you must have the Automate Playbook execute permission and access to the playbook content set. To disable or delete schedules created by other users, you must have the Automate Playbook write permission and access to the playbook content set. You cannot edit playbook schedules created by other users. If you do not have permission, related schedule options are hidden or disabled.

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.

Important: Schedule times are shown in Coordinated Universal Time (UTC). All other times are shown in the user's browser (local) time zone.

Create a playbook schedule

To set a schedule on an existing playbook:

  1. From the Main menu, go to Automate > Overview.
  2. In the Playbooks tab, select a playbook, click Actions, and then select Schedule.
  3. Select a schedule type and configure a schedule.
    • Select Basic to use the provided controls to set the schedule.

      The following frequency options are available:

      • One run per day, every day

      • One run per day, on selected days of the week

      • One run per day, on selected days of the month

      • Multiple runs per day, every day

      • Multiple runs per hour, every day

      • Multiple runs per day, on selected days of the week

      • Multiple runs per day, on selected days of the month

      • Single run

      • One run per month, relative to specified day

    • Select Cron Expression and use the Advanced field to enter the schedule as a cron expression. For information about cron syntax, see Reference: Cron syntax for Automate.

    A preview of your schedule and the next five upcoming instances is shown.

  4. If the playbook contains parameters, define parameter values for each scheduled playbook run to use.
  5. When finished, click Add.

Edit or clone a playbook schedule

To edit or clone an existing schedule:

  1. From the Main menu, go to Automate > Overview.
  2. In the Playbooks tab, select a playbook.
  3. Click the Schedules tab.
  4. You have the following options:
    • Click Actions options-blue, then click Edit to edit the schedule.

    • Click Actions options-blue, then click Clone to create a clone of the schedule.

  5. Select a schedule type and configure a schedule.
    • Select Basic to use the provided controls to set the schedule.

      The following frequency options are available:

      • One run per day, every day

      • One run per day, on selected days of the week

      • One run per day, on selected days of the month

      • Multiple runs per day, every day

      • Multiple runs per hour, every day

      • Multiple runs per day, on selected days of the week

      • Multiple runs per day, on selected days of the month

      • Single run

      • One run per month, relative to specified day

    • Select Cron Expression and use the Advanced field to enter the schedule as a cron expression. For information about cron syntax, see Reference: Cron syntax for Automate.

    A preview of your schedule and the next five upcoming instances is shown.

  6. When finished, click Save.

Disable or delete a playbook schedule

  1. From the Main menu, go to Automate > Overview.
  2. In the Playbooks tab, select a playbook.
  3. Click the Schedules tab.
  4. You have the following options:
    • Click Actions options-blue, then click Disable to disable the schedule.

    • Click Actions options-blue, then click Delete to delete the schedule.

Enable a disabled playbook schedule

  1. From the Main menu, go to Automate > Overview.
  2. In the Playbooks tab, select a playbook.
  3. Click the Schedules tab.
  4. For a disabled schedule, click Actions options-blue 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.

Note: To create a playbook run from a report, you must have the Automate Playbook execute permission on the content set assigned to a playbook to start a playbook run, and the Report read permission to create the playbook run from the report.
  1. Perform one of the following steps:
    • From the Main menu, go to Data > Reports. Open an existing report that contains data from endpoints that require the action or playbook run. For more information, see View reports.

    • From the Main menu, go to Data > Dashboards. Open an existing dashboard and click the chart name or a data point in the chart. For more information about dashboards, see View dashboards.

    • From the Main menu, go to Data > Explore Data. Configure the Explore Data page to show data from endpoints that require the action or playbook run. For more information, see Explore data and create reports.

  2. Select one or more endpoint result rows, then click Actions > Start Playbook.
  3. Select a Contains Action value, or enter a Filter items value to filter the available playbooks to only those that contain the selected value.
  4. Click Review Playbook in the row for the playbook that you want.

    The Review Playbook page appears.

  5. Review the playbook settings to ensure they match your expectations and then click Start.

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.

Note: To create a playbook run from a dashboard, you must have the Automate Playbook execute permission on the content set assigned to a playbook to start a playbook run, and the Dashboard read permission to create the playbook run from the dashboard.
  1. From the Main menu, go to Data > Dashboards. Open an existing dashboard and go to an action panel. For more information about dashboards, see View dashboards.
  2. Click automate <Action label>. The action label depends on the action panel configuration. If there are multiple actions, the button becomes a Deploy Action or Run Playbook dropdown list that lists the label for each action. For more information, see Add action panels.

    The Review Playbook page appears.

  3. Review the playbook settings to ensure they match your expectations and then click Start.

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.

Note: To create a playbook run from Interact, you must have the Automate Playbook read permission to see the Start a Playbook button on the Question Results page and the Automate Playbook execute permission on the content set assigned to a playbook to start a playbook run, and the Report read permission to create the playbook run from the report.
  1. Issue a dynamic question (see Issue a free-form question) or a saved question (see Issue a saved question).
  2. When the Question Results page shows the results, select up to 100 rows for the endpoints that require the playbook.
  3. 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 Filter by name field to find a specific playbook.
    • Expand Expand the Limiting Group to see the syntax of the targeting question. Click the endpoint count Endpoint to issue the question and see the results in a new browser tab.
    • Expand Expand a playbook to see its steps.
  4. 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.

  1. From the Main menu, go to Automate > Overview, and then open the Playbook Runs tab.
  2. In the Playbooks tab, find the row for the playbook, click Actions options2, 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.

  1. From the Main menu, go to Automate > Overview, and then open the Playbook Runs tab.
  2. In the Playbooks tab, find the row for the playbook, click Actions options2, 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.

  1. From the Main menu, go to Automate > Overview, and then open the Playbook Runs tab.
  2. In the Playbooks tab, find the row for the playbook, click Actions options2, and then select End.