Luzne notatki z warsztatow 'Ansible - superluminal way to infrastructure automation' na Warsjawa 2014
- Ansible agentless.
- Almost nothing on the machine
- Python does the work
- YAML & Jinja2
Updating ansible.
- Playbook structure:
- group_vars
- host_vars
- inventory
- roles
- site.yml
- site.yml content:
---
- hosts: localhost
sudo: True
tasks:
- name: "Add Ansible repository"
apt_repository:
repo: "ppa:ansible/ansible"
state: present
- name: "Upgrade Ansible"
apt:
name: "ansible"
state: "latest"
- inventory content:
localhost_ansible=local
Something similar to Chef supermarket: