Ansible Playbook Builder

Add tasks by picking modules and filling in their parameters, organise roles and inventory groups, lint the YAML and download a ready project.

Runs in your browser. Your files never leave your device. See how to check

…

How to do it

  1. 1
    Start from a template

    Choose Nginx web server, Docker host or Users and SSH hardening from Templates, or edit the default play.

  2. 2
    Add tasks

    Press + Task, pick a module from the list and fill in its parameter table.

  3. 3
    Set conditions and handlers

    Fill in when, loop, register and tags, add a handler and select it under notify handler.

  4. 4
    Organise roles

    In Roles add a role with tasks, handlers and defaults and type its name into a play's Roles field.

  5. 5
    Define the inventory

    In Inventory add groups with hosts, group variables and child groups.

  6. 6
    Lint and export

    Open YAML and lint, fix the listed problems and press Download project ZIP.

About this tool

Ansible playbooks are YAML, and YAML is unforgiving: an indentation slip, a mode written as 644 instead of '0644', or a notify that does not match any handler name, and a run fails half way through a fleet. This builder lets you assemble playbooks from a catalogue of about thirty common modules, each with its parameters listed, required ones marked and allowed values offered as choices. Tasks get conditions, loops, registered results, tags and handler notifications from dropdowns instead of free typing. Roles and inventory groups are edited in their own tabs, the YAML is generated with correct quoting and checked against rules modelled on ansible-lint, and the whole project downloads as a ZIP with site.yml, inventory files, roles and ansible.cfg.

Who this is for

System administrators automating a few servers, developers writing their first playbook, DevOps engineers sketching a role before committing it, and teachers explaining configuration management.

Building tasks

Choose a module such as ansible.builtin.apt, template, file, user, systemd_service, git, uri, community.general.ufw or community.docker.docker_container. Its parameters appear in a table with a short description; required ones have a red star and parameters with fixed values become dropdowns. Anything not in the table can be added under Other parameters. Values are typed correctly in YAML: true and false become booleans, plain numbers become integers, '0644' stays a quoted string and flow lists like [nginx, git] become real lists.

Plays, handlers and roles

A play has hosts, become, fact gathering, variables, roles and tasks. Handlers live next to tasks and the notify field lists their names, so a typo cannot happen. Roles have tasks, handlers and defaults and are exported in the standard roles/NAME/ directory layout.

Inventory

Groups hold hosts, one per line with optional host variables such as ansible_host=203.0.113.10, group variables and child groups. Both INI and YAML inventory formats are generated.

Lint checks

The YAML and lint tab shows issues with ansible-lint style rule names: missing task names, short module names instead of fully qualified names, required parameters missing, `when` written with {{ }}, shell used for something a module does, commands without changed_when, state: latest, missing file modes, unquoted octal modes, notify without a handler, and ignore_errors without a registered result. Any playbook can be pasted into Lint any playbook and imported into the editor.

Worked example

The Nginx web server template has five tasks and one handler. Changing the template task's mode from '0644' to 644 in a pasted copy triggers risky-octal, because YAML reads 644 as the decimal number 644, which is octal 1204 and gives the wrong permissions.

Limits

The module catalogue covers common modules, not all of them; others can still be used by typing their name and parameters. Lint rules are a subset of ansible-lint and do not execute anything: run `ansible-playbook --check --diff` and ansible-lint before production use. Jinja2 templates and vault files are not edited here.

Worked example

mode: 644 is read by YAML as the number 644 (octal 1204); the builder writes '0644' and the lint rule risky-octal flags the unquoted form.

Quick facts

Frequently asked questions

Do I need Ansible installed to use the builder?

No, the builder runs in your browser. You need Ansible on a control machine to run the exported playbook.

What are fully qualified collection names?

Names like ansible.builtin.copy say which collection a module comes from. Short names still work but ansible-lint recommends the full names to avoid ambiguity.

When do handlers run?

A handler runs once at the end of the play if at least one task that notifies it reported a change, for example reloading nginx after its configuration file changed.

Can I import an existing playbook?

Yes. Press Open playbook.yml or paste it in Lint any playbook and press Import into editor. Plays, tasks, handlers, variables and roles are read.

What is in the ZIP?

site.yml, inventory.ini, inventory.yml, ansible.cfg, a README with run commands, and roles/NAME/tasks, handlers and defaults for every role.

Are my inventory and variables uploaded?

No. Everything is generated in the browser and stored only on this device.

Guides for this tool

Completely freeNo cost, no sign-up
Files stay privateEverything runs in your browser
Easy in your languageAvailable in many languages