Ansible is an open-source automation engine that
# ALL VIA SSH
ansible-playbook -i frontends webserver.yml
ansible-playbook -i frontends webserver.yml
L'inventari és el lloc on defineixen els servidors al qual l'ansible pot operar.
ansible all -m ping
ansible all -a /bin/date
ansible all -m file -a 'path=hello.txt state=touch'
ansible all -m file -a 'path=hello.txt state=absent'
Playbook es un conjunt de plays
Instal·lació d'un Frontal
│
Un play es un conjunt de tasks
Instal·lació d'un nginx
│
Una task crida mòduls
Afegir un nou site
open source, xoxo
(1493cc0)
https://galaxy.ansible.com
ansible-galaxy install geerlingguy.haproxy -p roles
ansible-galaxy install -r requirements.yml -p roles
(4940e6b)
(fef499d)
(51115d9)
https://galaxy.ansible.com
ansible-galaxy install geerlingguy.mysql -p roles
ansible-galaxy install -r requirements.yml -p roles
Google, tell me about: ansible slack integration