ansible
TRANSCRIPT
![Page 1: Ansible](https://reader030.vdocuments.us/reader030/viewer/2022032616/55a638071a28ab7c1e8b46a1/html5/thumbnails/1.jpg)
Jasim Muhammed
![Page 2: Ansible](https://reader030.vdocuments.us/reader030/viewer/2022032616/55a638071a28ab7c1e8b46a1/html5/thumbnails/2.jpg)
ME?• Senior Software Engineer @
Nuventure, working for Rightside.
• Hacking flask, SQLAlchemy, grunt, jQuery, Jenkins and Ansible.
• Do lot of other things with team :)
![Page 3: Ansible](https://reader030.vdocuments.us/reader030/viewer/2022032616/55a638071a28ab7c1e8b46a1/html5/thumbnails/3.jpg)
WHAT IS ANSIBLE?
• Meaning: fictitious machine capable of faster communication than light
![Page 4: Ansible](https://reader030.vdocuments.us/reader030/viewer/2022032616/55a638071a28ab7c1e8b46a1/html5/thumbnails/4.jpg)
WHAT IS ANSIBLE?
• Ansible is a configuration management and provisioning tool, similar to Chef, Puppet or Salt
• Automates the job of ‘manual configuration’ and setting up of servers, machines
![Page 5: Ansible](https://reader030.vdocuments.us/reader030/viewer/2022032616/55a638071a28ab7c1e8b46a1/html5/thumbnails/5.jpg)
ADVANTAGES OF ANSIBLE• Ansible is setup on one computer or
VM, and could control other VMS via SSH
• No client installation is needed on remote machines
• Simple to code, using YAML files and INI
• Jinja2 variables support
![Page 6: Ansible](https://reader030.vdocuments.us/reader030/viewer/2022032616/55a638071a28ab7c1e8b46a1/html5/thumbnails/6.jpg)
VARIABLES, INVENTORY, ROLES PLAYBOOKS,
![Page 7: Ansible](https://reader030.vdocuments.us/reader030/viewer/2022032616/55a638071a28ab7c1e8b46a1/html5/thumbnails/7.jpg)
VARIABLES
• YAML files
• Defining a set of variables for set of host groups/hosts
![Page 8: Ansible](https://reader030.vdocuments.us/reader030/viewer/2022032616/55a638071a28ab7c1e8b46a1/html5/thumbnails/8.jpg)
INVENTORY
• INI Files
• Helps to group hosts
![Page 9: Ansible](https://reader030.vdocuments.us/reader030/viewer/2022032616/55a638071a28ab7c1e8b46a1/html5/thumbnails/9.jpg)
ROLES
• YAML files
• A series of tasks to execute
• Configuration files are generated from templates
• Variables are filled in tasks and templates at runtime
![Page 10: Ansible](https://reader030.vdocuments.us/reader030/viewer/2022032616/55a638071a28ab7c1e8b46a1/html5/thumbnails/10.jpg)
PLAYBOOKS
• YAML files
• A series of roles executed together on a group of machines
![Page 11: Ansible](https://reader030.vdocuments.us/reader030/viewer/2022032616/55a638071a28ab7c1e8b46a1/html5/thumbnails/11.jpg)
Running ping on all servers
![Page 12: Ansible](https://reader030.vdocuments.us/reader030/viewer/2022032616/55a638071a28ab7c1e8b46a1/html5/thumbnails/12.jpg)
Typical Ansible folder structure