Play Target & Privileges
Playbook Tasks (4)
---
# Ansible Playbook
# Generated by MiniToolDesk (https://minitooldesk.com/tools/ansible-playbook-builder/)
- name: Setup and Configure Production Nginx Web Server
hosts: webservers
become: true
gather_facts: true
vars:
http_port: 80
server_name: example.com
tasks:
- name: Update APT package index cache
apt:
update_cache: true
cache_valid_time: 3600
- name: Install Nginx web server and dependencies
apt:
name:
- nginx
- curl
- ufw
state: present
- name: Allow HTTP and HTTPS traffic in UFW firewall
ufw:
rule: allow
name: Nginx Full
- name: Ensure Nginx systemd service is active and enabled on boot
service:
name: nginx
state: started
enabled: true
Ready to Execute
Run ansible-playbook -i hosts playbook.yml directly on your control machine.
Pin this tool to your browser side panel
Access this utility anytime with Alt+M without switching tabs. 100% offline & free.
How to create Ansible playbooks visually
- 1Set your play name, target host inventory group, and privilege escalation (become: true).
- 2Select a DevOps automation preset or build custom tasks sequentially.
- 3Configure module parameters for package management, services, firewall, or Git.
- 4Copy or download the generated playbook.yml to run with ansible-playbook.
Idempotent DevOps Automation
Follows official Ansible community best practices for clean, reusable, and idempotent server provisioning.
Frequently Asked Questions
Enjoying Ansible Playbook Builder?Help your engineering peers discover private, ad-free tools!
MiniToolDesk is 100% free and client-side. Your support keeps the web ad-free.
Related Developer Utilities
Docker Run to Compose Converter
Convert complex docker run CLI commands into clean, production-ready docker-compose.yml files
Nginx Config Generator
Visual builder for production-ready Nginx reverse proxy, SSL, and SPA configs
Dockerfile Multi-Stage Generator
Visual builder for security-hardened, multi-stage Dockerfiles across modern stacks
Kubernetes YAML Manifest Builder
Visual generator for Deployment, Service, Ingress, and ConfigMap manifests