Top Banner
ANSIBLE MARTIN ZLÁMAL SIMPLE, AGENTLESS AND POWERFUL OPEN SOURCE IT AUTOMATION.
18

Ansible

Apr 14, 2017

Download

Engineering

Martin Zlámal
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Ansible

ANSIBLEMARTIN ZLÁMAL

SIMPLE, AGENTLESS AND POWERFULOPEN SOURCE IT AUTOMATION.

Page 2: Ansible

ZLML.CZTHINGS YOU ALREADY KNOW.

BUT MAYBE YOU DON'T.

Page 3: Ansible

MOTIVATION

I.

Page 4: Ansible

Do youRemember?dg/ftp-deployment

Page 5: Ansible

UPGRADE.SH

II.

Page 6: Ansible

I CANNOT EVENDESCRIBE THE

BEAUTY OFUPGRADE.SH

208 LoC of Bash code7264 chars in total

Somehow...

IT JUST WORKS.

Page 7: Ansible
Page 8: Ansible

LET'S BE HONESTIT'S NOT PERFECT

BUT IT WORKS

ACTUALLY IT WORKS QUITE WELLBUT IS THIS WHAT YOU REALLY WANT?

Page 9: Ansible

BACK TO THEANSIBLE

III.

Page 10: Ansible

playboy.yml:

$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$

$$$$$$$$$$j$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$j$$$$$$$$$$

$$$$$$$$$' ̀ $$$$$$$$$

$$$$$$$' .sS$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$Ss. ̀ $$$$$$$

$$$$$' .$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$' $$$$$$$$$$. ̀ $$$$$

$$$$ S$$$$$$$V ̀ S$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$' $$$$$$$$$$$S $$$$

$$$$ $$$$$$$$$$ ̀ !$$$$$$$$$$$$$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̀ S$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$S' .s$$$$$$

$$$$$$$$$. .$$$$$$$$$

$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$[dp]$$$

$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$

Yes, this isvalid YAML

It usesvalid YAML

Page 11: Ansible

- name: ...

strategy: free

hosts:

- amazon-webservers

roles:

- common

- webservers

- application

DEPLOY.YML playbook

play #1

tasks

Page 12: Ansible

IDEMPOTENCELAST BUZZWORD BEFORE DEMO

"It has to be noted, anyway, that it is perfectly possible to havea poorly written playbook that is not idempotent."

Page 13: Ansible

DEMO TIME

IV.

Page 14: Ansible
Page 15: Ansible

RESOURCES

V.

Page 16: Ansible

Compute Engine Management with Puppet, Chef, Salt, and Ansible

Why we use Terraform and not Chef, Puppet, Ansible,SaltStack, or CloudFormation

15 Things You Should Know About Ansible

INTERESTINGLINKS

Page 17: Ansible

docs.ansible.com

DOCUMENTATIONOF COURSE

Page 18: Ansible

THANKYOU!

FOLLOW ME IF YOU WANT@mrtnzlml