Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Configuration Management with Ansible
Search
Celestine Omin
June 12, 2016
Technology
1
160
Configuration Management with Ansible
Learn how to manage and deploy on servers using Ansible
Celestine Omin
June 12, 2016
Tweet
Share
More Decks by Celestine Omin
See All by Celestine Omin
Microservices - A love story.
cyberomin
1
310
Vagrant: How & Why
cyberomin
0
200
State of the web and web technologies.
cyberomin
1
130
DevOps with Ansible
cyberomin
0
250
Content Delivery Network - Why?
cyberomin
0
60
Git 101
cyberomin
0
360
The Konga Story
cyberomin
1
95
Other Decks in Technology
See All in Technology
AWS Network Firewall Proxyを触ってみた
nagisa53
1
240
10Xにおける品質保証活動の全体像と改善 #no_more_wait_for_test
nihonbuson
PRO
2
320
SREが向き合う大規模リアーキテクチャ 〜信頼性とアジリティの両立〜
zepprix
0
460
Tebiki Engineering Team Deck
tebiki
0
24k
StrandsとNeptuneを使ってナレッジグラフを構築する
yakumo
1
120
コスト削減から「セキュリティと利便性」を担うプラットフォームへ
sansantech
PRO
3
1.6k
30万人の同時アクセスに耐えたい!新サービスの盤石なリリースを支える負荷試験 / SRE Kaigi 2026
genda
4
1.3k
Contract One Engineering Unit 紹介資料
sansan33
PRO
0
13k
15 years with Rails and DDD (AI Edition)
andrzejkrzywda
0
200
Bill One 開発エンジニア 紹介資料
sansan33
PRO
5
17k
AI駆動開発を事業のコアに置く
tasukuonizawa
1
280
Bill One急成長の舞台裏 開発組織が直面した失敗と教訓
sansantech
PRO
2
380
Featured
See All Featured
Pawsitive SEO: Lessons from My Dog (and Many Mistakes) on Thriving as a Consultant in the Age of AI
davidcarrasco
0
67
Efficient Content Optimization with Google Search Console & Apps Script
katarinadahlin
PRO
1
330
StorybookのUI Testing Handbookを読んだ
zakiyama
31
6.6k
My Coaching Mixtape
mlcsv
0
48
DevOps and Value Stream Thinking: Enabling flow, efficiency and business value
helenjbeal
1
100
Ecommerce SEO: The Keys for Success Now & Beyond - #SERPConf2024
aleyda
1
1.8k
Rebuilding a faster, lazier Slack
samanthasiow
85
9.4k
Chrome DevTools: State of the Union 2024 - Debugging React & Beyond
addyosmani
10
1.1k
The Mindset for Success: Future Career Progression
greggifford
PRO
0
240
Save Time (by Creating Custom Rails Generators)
garrettdimon
PRO
32
2.1k
From Legacy to Launchpad: Building Startup-Ready Communities
dugsong
0
140
Building Better People: How to give real-time feedback that sticks.
wjessup
370
20k
Transcript
photo Configuration management with Ansible Configuring and deploying on Compute
Engine.
Celestine Omin Software Engineer - Konga. @cyberomin Who am I?
History…. How did we get here?
History…. The Old Guys
History…. Young and hippy
What is Ansbile? “Ansible is a free-software platform for configuring
and managing computers which combines multi-node software deployment, ad hoc task execution, and configuration management.” ~ Wikipedia
Configuration management, what’s that? “Configuration management (CM) is a systems
engineering process for establishing and maintaining consistency of a product's performance, functional, and physical attributes with its requirements, design, and operational information throughout its life” ~ Wikipedia
Configuration management tools 1.Ansible 2.Chef 3.SaltStack 4.Pupette
Why Ansible? 1. Unlike the rest, especially the really popular
Chef, Ansible is agentless. It only requires standard SSH connection. 2. Idempotency.
Installation $ sudo apt-get install software-properties-common $ sudo apt-add-repository ppa:ansible/ansible
$ sudo apt-get update $ sudo apt-get install ansible
Inventories [web] 127.0.0.1 [db] Eu-zone-db-node [lb] Load-balance-node
Commands ansible all –m ping –u celestine ansible all -m
shell -a "ping -c3 localhost" -u celestine
Playbooks Playbooks are Ansible’s configuration, deployment, and orchestration language. They
can describe a policy you want your remote systems to enforce, or a set of steps in a general IT process.
Playbooks - What makes up a playbook Roles – tasks,
handlers, files, templates, vars Group_vars
Roles – Tasks – main.yml ---- - name: Add Nginx
Repository apt_repository: repo='ppa:nginx/stable' state=present - name: Install Nginx apt: name=nginx state=latest update_cache=true notify: Start Nginx
Roles – Handlers – main.yml ---- - name: Start Nginx
service: name=nginx state=started - name: Reload Nginx service: name=nginx state=reloaded
Running a playbook ansible-playbook site.yml
Ansible Galaxy http://galaxy.ansible.com
Questions
thank you