English
Get started

← All templates · Automation

Deploy Semaphore UI in one click

A web UI for Ansible, Terraform and other automation

A self-hosted alternative to AWX and Ansible Tower.

What is Semaphore UI?

Semaphore UI is an open-source web UI for Ansible that teams run instead of AWX. It runs Ansible playbooks, Terraform and OpenTofu code, and Bash, PowerShell and Python scripts from task templates that pull from your Git repositories. A template runs on demand, on a cron schedule or when a new commit lands on its branch. Every run keeps its log, so you can see what ran, when and who started it. SSH keys and passwords stay encrypted in the Key Store, and people run deploys from the browser without keeping keys on their laptops.

A tool that holds the keys to every server is one people prefer to self-host. Semaphore UI is a Go application that runs as one binary or container over SQLite, MySQL or PostgreSQL, and its code is MIT-licensed. The catch is that some team features, such as project runners placed inside private networks, need a paid Pro license.

Hosting Semaphore UI on Pethost

  1. You sign in to Pethost with a passkey, GitHub or Google. No machine yet? You pick a plan, and the link waits until it is ready.
  2. New project opens at Semaphore UI. You fill in what it asks for and click Create project: Admin password.
  3. In a minute or two Semaphore UI is live at its own address with HTTPS. Its secrets are made at random, and its data is in the nightly backup.
  4. It is a project like any other: you or your agent can change it, roll it back or restore it.

Questions about Semaphore UI

Is Semaphore UI free and open source?

Yes. Its code is under the MIT license, and the free Community edition includes task templates, cron schedules, workflows, notifications and the REST API. A paid Pro license key adds extras such as a built-in Terraform state backend.

Semaphore UI vs AWX: what is the difference?

AWX's recommended install runs on Kubernetes, and its Docker setup is meant for development and testing. Semaphore UI runs standalone on one server, and it has its own templates for Terraform, OpenTofu and scripts, where AWX centers on Ansible.

Can Semaphore UI run Terraform and OpenTofu?

Yes. A Terraform/OpenTofu template runs terraform init before each run, passes TF_VAR_ keys from a Variable Group as variables and supports workspaces. An apply without Auto Approve waits until someone clicks Confirm or Reject.

What user roles does Semaphore UI have?

Each project has four: Owner; Manager, who can do almost everything except delete the project or change Owners; Task Runner, who can run any task template and only read the rest; and Guest, who can only read.

Can Semaphore UI send alerts when a task fails?

Yes, by email, Telegram, Slack, Microsoft Teams, Rocket.Chat, DingTalk or Gotify. Chat channels report successes, failures and tasks waiting for confirmation; email reports failures only and needs an SMTP server.

How much memory and disk does Semaphore UI need?

Semaphore UI is light: under 100 MB at rest, plus what each Ansible or Terraform run takes while it runs. On Pethost the Starter plan is enough for it, with room for other apps beside it.

Semaphore UI Docker Compose file

The template is this compose.yaml and the variables written into the project’s .env as it is created. Pethost runs the file as it is written.

Containers: semaphore (semaphoreui/semaphore:v2.19.16).

Volumes, in the nightly backup: config, data.

services:
  semaphore:
    image: semaphoreui/semaphore:v2.19.16
    restart: unless-stopped
    environment:
      SEMAPHORE_DB_DIALECT: sqlite
      # The first start makes this admin, so no setup page is left open.
      SEMAPHORE_ADMIN: admin
      SEMAPHORE_ADMIN_NAME: Admin
      SEMAPHORE_ADMIN_EMAIL: admin@localhost
      SEMAPHORE_ADMIN_PASSWORD: ${ADMIN_PASSWORD}
    volumes:
      # config.json, with the keys the first start generates.
      - config:/etc/semaphore
      - data:/var/lib/semaphore

volumes:
  config:
  data:

More in Automation