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
Automation Made Simple with Ansible
Search
Erika Heidi
April 20, 2016
Programming
310
2
Share
Automation Made Simple with Ansible
Short talk presented at the first DigitalOcean Berlin meetup
Erika Heidi
April 20, 2016
More Decks by Erika Heidi
See All by Erika Heidi
FreeCAD 101 Lightning Talk
erikaheidi
0
55
Learning Lab: WordPress
erikaheidi
0
140
Criando Container Runtimes mais Seguras com Wolfi
erikaheidi
0
210
Introducing Chainguard Images for Safer PHP Runtimes
erikaheidi
0
260
Automatizando documentação em PHP com Autodocs
erikaheidi
0
200
Building the World: The Story Behind Wolfi
erikaheidi
0
840
Hello Wolfi
erikaheidi
1
810
Container Images for the Cloud Native Era
erikaheidi
1
460
Creating Secure Container Images with apko
erikaheidi
0
660
Other Decks in Programming
See All in Programming
GNU Makeの使い方 / How to use GNU Make
kaityo256
PRO
16
5.6k
Agent Skills を社内で育てる仕組み作り
jackchuka
0
660
書き換えて学ぶTemporal #fukts
pirosikick
2
340
The Less-Told Story of Socket Timeouts
coe401_
3
930
AgentCore Optimizationを始めよう!
licux
3
120
CDK Deployのための ”反響定位”
watany
5
930
ハーネスエンジニアリングとは?
kinopeee
13
6.7k
検索設計から 推論設計への重心移動と Recall-First Retrieval
po3rin
5
1.5k
AI-DLC Deep Dive
yuukiyo
9
5.4k
Claude Codeをカスタムして自分だけのClaude Codeを作ろう
terisuke
0
160
Structured Concurrency, Scoped Values and Joiners in the JDK 25 26 27
josepaumard
1
140
Explore CoroutineScope
tomoeng11
0
150
Featured
See All Featured
Navigating Weather and Climate Data
rabernat
0
180
How to optimise 3,500 product descriptions for ecommerce in one day using ChatGPT
katarinadahlin
PRO
1
3.6k
Tips & Tricks on How to Get Your First Job In Tech
honzajavorek
1
500
Java REST API Framework Comparison - PWX 2021
mraible
34
9.3k
Rails Girls Zürich Keynote
gr2m
96
14k
Joys of Absence: A Defence of Solitary Play
codingconduct
1
360
Agile that works and the tools we love
rasmusluckow
331
21k
Embracing the Ebb and Flow
colly
88
5k
Un-Boring Meetings
codingconduct
0
280
Code Review Best Practice
trishagee
74
20k
Hiding What from Whom? A Critical Review of the History of Programming languages for Music
tomoyanonymous
2
790
Responsive Adventures: Dirty Tricks From The Dark Corners of Front-End
smashingmag
254
22k
Transcript
None
Automation Made Simple with Ansible @erikaheidi / DigitalOcean Meetup Berlin
ANSIBLE OVERVIEW
Automation Made Simple with Ansible @erikaheidi / DigitalOcean Meetup Berlin
Ansible • Simple and straightforward language (YAML) • Agentless Architecture • Huge collection of built-in modules • Great community, very popular on Github
Automation Made Simple with Ansible @erikaheidi / DigitalOcean Meetup Berlin
Inventories #/etc/ansible/hosts [dev] 192.168.30.33 [prod] myserver.com otherserver.com
Automation Made Simple with Ansible @erikaheidi / DigitalOcean Meetup Berlin
Playbook Example --- - hosts: all become: true tasks: - name: Update apt-cache apt: update_cache=yes - name: Install Nginx apt: name=nginx state=latest
Automation Made Simple with Ansible @erikaheidi / DigitalOcean Meetup Berlin
Playbook Resources • Variables • Loops • Conditionals • Templates • Ansible Vault
Automation Made Simple with Ansible @erikaheidi / DigitalOcean Meetup Berlin
HANDS ON
Automation Made Simple with Ansible @erikaheidi / DigitalOcean Meetup Berlin
Playbook --- - hosts: all become: true vars: packages: ["nginx", "vim"] message: "1st DigitalOcean Berlin Meetup, YAY!" tasks: - name: Update apt-cache apt: update_cache=yes - name: Install Packages apt: name={{ item }} state=latest with_items: packages - name: Change Nginx index file template: src=index.tpl dest=/usr/share/nginx/html/index.html notify: restart nginx handlers: - name: restart nginx service: name=nginx enabled=yes state=restarted
Automation Made Simple with Ansible @erikaheidi / DigitalOcean Meetup Berlin
Playbook --- - hosts: all become: true vars: packages: ["nginx", "vim"] message: "1st DigitalOcean Berlin Meetup, YAY!" tasks: - name: Update apt-cache apt: update_cache=yes - name: Install Packages apt: name={{ item }} state=latest with_items: packages - name: Change Nginx index file template: src=index.tpl dest=/usr/share/nginx/html/index.html notify: restart nginx handlers: - name: restart nginx service: name=nginx enabled=yes state=restarted
Automation Made Simple with Ansible @erikaheidi / DigitalOcean Meetup Berlin
Playbook --- - hosts: all become: true vars: packages: ["nginx", "vim"] message: "1st DigitalOcean Berlin Meetup, YAY!" tasks: - name: Update apt-cache apt: update_cache=yes - name: Install Packages apt: name={{ item }} state=latest with_items: packages - name: Change Nginx index file template: src=index.tpl dest=/usr/share/nginx/html/index.html notify: restart nginx handlers: - name: restart nginx service: name=nginx enabled=yes state=restarted
Automation Made Simple with Ansible @erikaheidi / DigitalOcean Meetup Berlin
Playbook --- - hosts: all become: true vars: packages: ["nginx", "vim"] message: "1st DigitalOcean Berlin Meetup, YAY!" tasks: - name: Update apt-cache apt: update_cache=yes - name: Install Packages apt: name={{ item }} state=latest with_items: packages - name: Change Nginx index file template: src=index.tpl dest=/usr/share/nginx/html/index.html notify: restart nginx handlers: - name: restart nginx service: name=nginx enabled=yes state=restarted
Automation Made Simple with Ansible @erikaheidi / DigitalOcean Meetup Berlin
Playbook --- - hosts: all become: true vars: packages: ["nginx", "vim"] message: "1st DigitalOcean Berlin Meetup, YAY!" tasks: - name: Update apt-cache apt: update_cache=yes - name: Install Packages apt: name={{ item }} state=latest with_items: packages - name: Change Nginx index file template: src=index.tpl dest=/usr/share/nginx/html/index.html notify: restart nginx handlers: - name: restart nginx service: name=nginx enabled=yes state=restarted
Automation Made Simple with Ansible @erikaheidi / DigitalOcean Meetup Berlin
Playbook --- - hosts: all become: true vars: packages: ["nginx", "vim"] message: "1st DigitalOcean Berlin Meetup, YAY!" tasks: - name: Update apt-cache apt: update_cache=yes - name: Install Packages apt: name={{ item }} state=latest with_items: packages - name: Change Nginx index file template: src=index.tpl dest=/usr/share/nginx/html/index.html notify: restart nginx handlers: - name: restart nginx service: name=nginx enabled=yes state=restarted
Automation Made Simple with Ansible @erikaheidi / DigitalOcean Meetup Berlin
DEMO TIME!
Automation Made Simple with Ansible @erikaheidi / DigitalOcean Meetup Berlin
QUESTIONS?
Automation Made Simple with Ansible @erikaheidi / DigitalOcean Meetup Berlin
THANKS! @erikaheidi
[email protected]