Slide 1

Slide 1 text

INTRODUCTION TO! ANSIBLE! BY THOMAS BREDILLET
 @THOMASBREDILLET

Slide 2

Slide 2 text

Deploying, Sharing, Reusing Automate, Orchestrate

Slide 3

Slide 3 text

Why using Ansible ? • Chef without having to write Ruby! • Puppet/Salt without masters, minions, manifests, certs..! • Diversity of Ansible modules

Slide 4

Slide 4 text

Task • It's a unit action that set the state of a system! • Code that is remotely executed with arguments • Directory should exist! • Service should run! • Package should be installed! • Files should be present

Slide 5

Slide 5 text

Task • Should be idempotent! • Can use conditionals! • Can use variables! • Use Ansible modules

Slide 6

Slide 6 text

Playbook Ordered set of tasks • Bundle of several tasks! • Set the variable values for the tasks! • Defines which host the bundle of tasks should be applied to.

Slide 7

Slide 7 text

Playbook • Tasks are executed synchronously! • In parallel across hosts! • Execution moves on until all tasks complete or all hosts have failed

Slide 8

Slide 8 text

Playbook

Slide 9

Slide 9 text

Roles Tasks! Handlers! Variables! Template! Dependencies

Slide 10

Slide 10 text

Roles

Slide 11

Slide 11 text

Example .. ! ! ! How we use Ansible!

Slide 12

Slide 12 text

Other features.. Accelerated mode ! Asynchronous tasks! Dry-run! Error handling! Tags

Slide 13

Slide 13 text

Questions ?