Run Ansible and Terraform
1. Open the project
Section titled “1. Open the project”Open the Automation tool window (right tool window bar) → folder with + → choose the
repository with your playbooks and *.tf files. The folder becomes a project; the work folder of
the Git menu and the agents stays as it was. Show in Project shows its files in the Project
window.
If ansible-playbook or tofu is missing, Missing tools has an Install button
(Homebrew). A tool in the project’s .venv is used before the Homebrew one.
2. Check a playbook
Section titled “2. Check a playbook”- Playbook: e.g.
playbooks/db.yml. - Inventory: ansible.cfg uses the inventory of
ansible.cfg; or pick one found in the project. - Limit:
db:&prod(only hosts in both groups). - Tick vault password when the variables are encrypted and become password when sudo asks for one.
- Check.

The line and what it touches are shown below the form, e.g. that tasks with check_mode: false
make their changes also with --check. Run opens a tab in the bottom terminal; Ansible asks
for the passwords there.
When the check looks right, Run… builds the same line without --check and asks for
confirmation before it runs.
3. Plan and apply
Section titled “3. Plan and apply”- In Terraform / OpenTofu, choose
tofuorterraform. - For a configuration that is not initialized, Init first.
- Optional: Workspace and Var file (e.g.
env/eu-central-1.tfvars). - Plan: reads the infrastructure, changes nothing.
- Apply…: confirm the line here; the CLI shows the plan again and asks for
yesin the terminal.
The tab’s run bar has Stop, Restart and the exit code; Ctrl+C in the tab stops the CLI the usual way (Terraform and OpenTofu release the state lock when interrupted once).