Ansible Playbook Generator

Create a custom Ansible playbook for Ubuntu and Debian servers in just a few clicks.

Server Configuration

Separate multiple servers with commas.
Separate multiple servers with commas.

Security Settings

Package Management

Example: deb http://archive.ubuntu.com/ubuntu noble main non-free. You can use our Ubuntu APT Sources Generator or Debian APT Sources Generator to get ready quickly.

Target System

Your Ansible Playbook

---
- hosts: all
  become: yes
  tasks:
    - name: Configure DNS
      resolv:
        nameservers:
          - 8.8.8.8
          - 1.1.1.1

    - name: Configure NTP
      ntp:
        servers:
          - pool.ntp.org
          - ntp.ubuntu.com

    - name: Allow SSH through UFW
      ufw:
        rule: allow
        name: OpenSSH

    - name: Ensure correct OS version
      debug:
        msg: "Running on ubuntu-2404"