Skip to content

Latest commit

 

History

History
115 lines (84 loc) · 1.71 KB

ansible_meetup.rst

File metadata and controls

115 lines (84 loc) · 1.71 KB

Ansible Workshop

Hands on Ansible deploying GitLab
Location - Webonise Lab, Pune
Date - 2015-02-21

About Me

Name:Rishabh Das
Contact:[email protected]
Workplace:Red Hat, Pune

Agenda

  • What is Ansible
  • Installation
  • Ansible modules
  • Ansible variables
  • Ansible playbook
  • Demo

What is Ansible

Images/Ansible.png

  • IT automation tool
  • Deploy, Manage and Configure applications

Installation

  • RPM family - yum install ansible
  • Debian / Ubuntu - apt-get install ansible
  • pip install ansible

Ansible Modules

  • Control system resources
  • Supports arguments
  • Written in Python

Ansible Variables

  • Inventory variables
  • Playbook variables
  • Discovered variables or Facts

Ansible Playbook

  • YAML file
  • Set of instructions
  • Has host details
  • Variables to read from

Sample Playbook

---
- name: install and start httpd service
  hosts: webservers
  user: cloud-user
  sudo: yes
  tasks:
     - name: Install / Check apache is intalled
       yum: name=httpd state=present
     - name: Start / Check apache service
       service: name=httpd state=started

Demo




Deploy GitLab

Documentation

Slides / Code

Thank You



Images/ThankYou.png


Location - Webonise Lab, Pune