Run an Ansible Playbook (Automation)¶
The ⚙ Automation tab (admin-only) is a built-in Ansible playbook editor, runner, and live-log tailer — for one-off or recurring fleet operations that don't fit MFCloud's own API (e.g. a custom hardening pass, an ad-hoc package rollout).
Privileged feature
Running arbitrary Ansible against your infrastructure is equivalent to root/API access — the whole tab is gated on global_admin.
Quick steps¶
- ⚙ Automation → + New Playbook (or ⬆ Upload .yml an existing one).
- Name it and write/paste the YAML in the editor. 💾 Save.
- Pick an Executor:
- local — runs
ansible-playbookdirectly from the master container. - awx — hands the run to an external AWX/Ansible Automation Platform instance instead; requires an AWX Job Template name/ID (the editor's own YAML content is not sent to AWX — only
extra_vars) and a working AWX connection under ⚙ Config. - Set verbosity (
-vthrough-vvvvv) and log format —live tailstreams output as it runs,JSONonly flushes at the end (no live tail, but structured). - ▶ Run. Output streams into the Run Output panel; ⏹ Stop revokes a queued run or SIGTERMs an in-flight one.
- Recent runs dropdown recalls past output for the same playbook.
Configuring AWX (optional)¶
⚙ Config stores the AWX base URL and API token, plus a Test Connection check — needed only if you plan to use the awx executor instead of running locally.
See also¶
- The Automation tab's runs also show up in the global Recent Tasks drawer (as
Playbook: <name>), same as any other MFCloud task.