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
2
240
Automation Made Simple with Ansible
Short talk presented at the first DigitalOcean Berlin meetup
Erika Heidi
April 20, 2016
Tweet
Share
More Decks by Erika Heidi
See All by Erika Heidi
Learning Lab: WordPress
erikaheidi
0
24
Criando Container Runtimes mais Seguras com Wolfi
erikaheidi
0
82
Introducing Chainguard Images for Safer PHP Runtimes
erikaheidi
0
120
Automatizando documentação em PHP com Autodocs
erikaheidi
0
89
Building the World: The Story Behind Wolfi
erikaheidi
0
550
Hello Wolfi
erikaheidi
1
670
Container Images for the Cloud Native Era
erikaheidi
1
340
Creating Secure Container Images with apko
erikaheidi
0
480
Criando GitHub Actions em PHP com Minicli
erikaheidi
0
210
Other Decks in Programming
See All in Programming
카카오페이는 어떻게 수천만 결제를 처리할까? 우아한 결제 분산락 노하우
kakao
PRO
0
110
Streams APIとTCPフロー制御 / Web Streams API and TCP flow control
tasshi
2
350
「今のプロジェクトいろいろ大変なんですよ、app/services とかもあって……」/After Kaigi on Rails 2024 LT Night
junk0612
5
2.2k
Kaigi on Rails 2024 〜運営の裏側〜
krpk1900
1
240
アジャイルを支えるテストアーキテクチャ設計/Test Architecting for Agile
goyoki
9
3.3k
型付き API リクエストを実現するいくつかの手法とその選択 / Typed API Request
euxn23
8
2.3k
3 Effective Rules for Using Signals in Angular
manfredsteyer
PRO
1
100
とにかくAWS GameDay!AWSは世界の共通言語! / Anyway, AWS GameDay! AWS is the world's lingua franca!
seike460
PRO
1
900
Functional Event Sourcing using Sekiban
tomohisa
0
100
AI時代におけるSRE、 あるいはエンジニアの生存戦略
pyama86
6
1.2k
Jakarta EE meets AI
ivargrimstad
0
160
2024/11/8 関西Kaggler会 2024 #3 / Kaggle Kernel で Gemma 2 × vLLM を動かす。
kohecchi
5
940
Featured
See All Featured
How to Think Like a Performance Engineer
csswizardry
20
1.1k
A Modern Web Designer's Workflow
chriscoyier
693
190k
Helping Users Find Their Own Way: Creating Modern Search Experiences
danielanewman
29
2.3k
A Philosophy of Restraint
colly
203
16k
Making Projects Easy
brettharned
115
5.9k
Optimising Largest Contentful Paint
csswizardry
33
2.9k
Large-scale JavaScript Application Architecture
addyosmani
510
110k
[RailsConf 2023 Opening Keynote] The Magic of Rails
eileencodes
28
9.1k
The Invisible Side of Design
smashingmag
298
50k
Product Roadmaps are Hard
iamctodd
PRO
49
11k
Keith and Marios Guide to Fast Websites
keithpitt
409
22k
The Myth of the Modular Monolith - Day 2 Keynote - Rails World 2024
eileencodes
16
2.1k
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]