Skip to content

Ansible

Configuration management via YAML playbooks.

YAML
1
2
3
4
5
6
7
8
- hosts: web
  become: true
  tasks:
    - name: Install Nginx
      apt:
        name: nginx
        state: present
        update_cache: true
Bash
ansible-playbook -i inventory.yaml site.yaml