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