Workshop SMAU Milan
-
Upload
giovanni-albero -
Category
Technology
-
view
107 -
download
0
Transcript of Workshop SMAU Milan
![Page 1: Workshop SMAU Milan](https://reader035.fdocument.pub/reader035/viewer/2022062316/587b6d861a28abc62f8b4cdb/html5/thumbnails/1.jpg)
Ansiblegestisci in modo automaticole tue macchine virtualiin locale e in remoto
Dalla gestione delle macchine di sviluppo alle macchine di produzione, deploy software.
![Page 2: Workshop SMAU Milan](https://reader035.fdocument.pub/reader035/viewer/2022062316/587b6d861a28abc62f8b4cdb/html5/thumbnails/2.jpg)
[email protected] - Full-stack developer
WHOAMI
Full-stack Developer @ Fazland
@albero92
Giovanni Albero
![Page 4: Workshop SMAU Milan](https://reader035.fdocument.pub/reader035/viewer/2022062316/587b6d861a28abc62f8b4cdb/html5/thumbnails/4.jpg)
[email protected] - Full-stack developer
Configurare Sistemi
Deploy software
Orchestrare
Downtime zero
![Page 11: Workshop SMAU Milan](https://reader035.fdocument.pub/reader035/viewer/2022062316/587b6d861a28abc62f8b4cdb/html5/thumbnails/11.jpg)
[email protected] - Full-stack developer
$ sudo pip install ansible
Installazione
oppure aggiungendo il repository di ansible ppa:ansible/ansible
![Page 15: Workshop SMAU Milan](https://reader035.fdocument.pub/reader035/viewer/2022062316/587b6d861a28abc62f8b4cdb/html5/thumbnails/15.jpg)
[email protected] - Full-stack developer
Inventory[webservers]foo.example.combar.example.com
[dbservers]one.example.comtwo.example.comthree.example.com
[all:children]webserversdbservers
badwolf.example.com:5309
![Page 16: Workshop SMAU Milan](https://reader035.fdocument.pub/reader035/viewer/2022062316/587b6d861a28abc62f8b4cdb/html5/thumbnails/16.jpg)
[email protected] - Full-stack developer
Playbook
---- hosts: all become: yes tasks: - name: Update apt-cache apt: update_cache=yes - name: Install htop apt: name=htop state=present
![Page 17: Workshop SMAU Milan](https://reader035.fdocument.pub/reader035/viewer/2022062316/587b6d861a28abc62f8b4cdb/html5/thumbnails/17.jpg)
[email protected] - Full-stack developer
Variabili---- hosts: all become: true vars: package_1: curl tasks: - name: Update apt-cache apt: update_cache=yes - name: “Install {{ package_1 }}” apt: name=“{{ package_1 }}” state=present
![Page 18: Workshop SMAU Milan](https://reader035.fdocument.pub/reader035/viewer/2022062316/587b6d861a28abc62f8b4cdb/html5/thumbnails/18.jpg)
[email protected] - Full-stack developer
---- hosts: all sudo: yes tasks: - name: copy authorized_keys copy: src: authorized_keys dest: /home/ubuntu/.ssh/authorized_keys owner: ubuntu when: environment == “Stage”
Condizioni
![Page 19: Workshop SMAU Milan](https://reader035.fdocument.pub/reader035/viewer/2022062316/587b6d861a28abc62f8b4cdb/html5/thumbnails/19.jpg)
[email protected] - Full-stack developer
https://github.com/giovannialbero1992/smau-ansible
Progetto workshop
http://docs.ansible.com/
![Page 20: Workshop SMAU Milan](https://reader035.fdocument.pub/reader035/viewer/2022062316/587b6d861a28abc62f8b4cdb/html5/thumbnails/20.jpg)
[email protected] - Full-stack developer
THANK YOU
Full-stack Developer @ Fazland
@albero92
Giovanni Albero
[email protected] domande e/o feedback:
![Page 21: Workshop SMAU Milan](https://reader035.fdocument.pub/reader035/viewer/2022062316/587b6d861a28abc62f8b4cdb/html5/thumbnails/21.jpg)
Ansiblegestisci in modo automaticole tue macchine virtualiin locale e in remoto
Dalla gestione delle macchine di sviluppo alle macchine di produzione, deploy software.