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
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
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
51
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
250
Automatizando documentação em PHP com Autodocs
erikaheidi
0
190
Building the World: The Story Behind Wolfi
erikaheidi
0
830
Hello Wolfi
erikaheidi
1
800
Container Images for the Cloud Native Era
erikaheidi
1
460
Creating Secure Container Images with apko
erikaheidi
0
650
Other Decks in Programming
See All in Programming
実践CRDT
tamadeveloper
0
500
飯MCP
yusukebe
0
500
「効かない!」依存性注入(DI)を活用したAPI Platformのエラーハンドリング奮闘記
mkmk884
1
330
今年もTECHSCOREブログを書き続けます!
hiraoku101
0
250
Make GenAI Production-Ready with Kubernetes Patterns
bibryam
0
110
AI時代のPhpStorm最新事情 #phpcon_odawara
yusuke
0
170
PHP で mp3 プレイヤーを実装しよう
m3m0r7
PRO
0
270
YJITとZJITにはイカなる違いがあるのか?
nakiym
0
210
Codex CLI でつくる、Issue から merge までの開発フロー
amata1219
0
350
Going Multiplatform with Your Android App (Android Makers 2026)
zsmb
2
400
10 Tips of AWS ~Gen AI on AWS~
licux
5
350
AI-DLC Deep Dive
yuukiyo
7
1.9k
Featured
See All Featured
ラッコキーワード サービス紹介資料
rakko
1
3M
Game over? The fight for quality and originality in the time of robots
wayneb77
1
160
How to Talk to Developers About Accessibility
jct
2
170
A Tale of Four Properties
chriscoyier
163
24k
Groundhog Day: Seeking Process in Gaming for Health
codingconduct
0
140
The Anti-SEO Checklist Checklist. Pubcon Cyber Week
ryanjones
0
120
Sam Torres - BigQuery for SEOs
techseoconnect
PRO
0
240
Digital Projects Gone Horribly Wrong (And the UX Pros Who Still Save the Day) - Dean Schuster
uxyall
0
1.1k
Performance Is Good for Brains [We Love Speed 2024]
tammyeverts
12
1.6k
Designing for Timeless Needs
cassininazir
0
190
So, you think you're a good person
axbom
PRO
2
2k
The B2B funnel & how to create a winning content strategy
katarinadahlin
PRO
1
330
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]