ansible
TRANSCRIPT
Jasim Muhammed
ME?• Senior Software Engineer @
Nuventure, working for Rightside.
• Hacking flask, SQLAlchemy, grunt, jQuery, Jenkins and Ansible.
• Do lot of other things with team :)
WHAT IS ANSIBLE?
• Meaning: fictitious machine capable of faster communication than light
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
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
VARIABLES, INVENTORY, ROLES PLAYBOOKS,
VARIABLES
• YAML files
• Defining a set of variables for set of host groups/hosts
INVENTORY
• INI Files
• Helps to group hosts
ROLES
• YAML files
• A series of tasks to execute
• Configuration files are generated from templates
• Variables are filled in tasks and templates at runtime
PLAYBOOKS
• YAML files
• A series of roles executed together on a group of machines
Running ping on all servers
Typical Ansible folder structure