Introducing Ansible Playbooks in Tanium Automate
Overview
Ansible playbook support in Tanium Automate is now available for Tanium Cloud customers. If your team already uses Ansible to configure Linux servers, you can now run those same playbooks on the Linux endpoints Tanium manages. You do not need to edit the playbooks and you do not need a separate Ansible server, SSH keys, or a list of hosts to keep up to date.
Your Playbooks, Your Endpoints
An Ansible playbook is a file that describes how a machine should be set up: which packages are installed, which services are running, and what a config file should contain. Normally a central Ansible server connects to each machine over SSH and applies the playbook.
With Tanium, there is no central server. You upload your playbook files to Tanium and pick a computer group. Tanium sends the files to each endpoint through the Tanium Client, and each endpoint applies the playbook to itself. Tanium changes one line in your playbook, the line that says which hosts to target, so that it means "this machine." Everything else runs exactly as you wrote it.
Using Ansible Playbooks in Tanium Automate
Example 1: Find the drift, then fix it
A Linux team wants to know whether its web servers still match the configuration they wrote down months ago. They paste their Ansible playbook into Atlas and ask for a check-mode run against their Linux computer group. Check mode is Ansible's dry run: each endpoint reports what would change and nothing is written.
The run comes back DRIFTED, naming every endpoint the playbook would change. A drifted endpoint is one that no longer matches what the playbook describes. The team runs the same playbook in run mode against just those hosts, then checks again. This time the check comes back clean: nothing on any endpoint would change.
Example 2: Run the Ansible hardening playbook you already have
A Linux team keeps a hardening playbook in Git with roles, files, and Ansible Galaxy collection dependencies. They vendor the collections, archive the tree, and upload it to the Tanium Server, which returns a SHA-256 hash. They hand Atlas the hash and an entry-point playbook, and it runs across the group.
A run-mode run against a whole computer group is high risk, so it requires an additional approval. When the run finishes, Atlas reports the outcome for each endpoint: how many tasks ran, how many actually changed something, and anything that failed, with the failing task and Ansible's own message for it.
What you need first
Your Linux endpoints need Python 3.10 or later and ansible-core 2.11 or later installed. This is the same Ansible your control node runs today, moved onto the endpoint.
How you choose targets
Target an existing computer group by name, or give an explicit list of computer names. The list is how the drifted hosts from a check run become the targets of a remediation run. Nothing creates or evaluates groups on your behalf.
Two ways to hand Atlas a playbook
Inline YAML. Paste the playbook into the prompt. Suits a one-task fix or a quick check: a package installed across a group, a baseline config file present with the expected contents.
Archive of your Git tree. For real playbooks with roles, files, and Galaxy dependencies. Author your collections, archive the tree, upload it, and give Atlas the returned hash plus an entry-point playbook.
Atlas can also register a run as a named composition, baking in source, mode, and target so later runs take one approval and no re-upload. Nothing is cached: every run executes again on the endpoints.
Your Credentials Stay Yours
Tanium does not connect to your Git repository or download Ansible content on your behalf. You build the upload on your own network, so your credentials stay with you, and playbook content from your company's internal repositories works without extra setup. Every run is recorded in Automate: the result, how many tasks ran, and which endpoints had drifted from what the playbook describes.
Availability and Requirements
Ansible playbook support is available for Tanium Cloud customers with Tanium Automate and Tanium Atlas.
Linux endpoints only. You install Python 3.10 or later and ansible-core 2.11 or later on the endpoints. Uploading playbook files requires the write package permission on a content set.
Not included: Windows endpoints, devices without a Tanium Client, playbooks that need Ansible Vault passwords, playbooks where tasks on one host depend on other hosts (such as rolling restarts), connecting Tanium directly to a Git repository, and a console page for playbook runs. Atlas is the interface. Tanium does not stop two runs from hitting the same endpoint at the same time.
Resources
For more information, please refer to the following resources: