Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Ansible

tnbredillet
October 16, 2013

 Ansible

tnbredillet

October 16, 2013
Tweet

Other Decks in Technology

Transcript

  1. Why using Ansible ? • Chef without having to write

    Ruby! • Puppet/Salt without masters, minions, manifests, certs..! • Diversity of Ansible modules
  2. 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
  3. Task • Should be idempotent! • Can use conditionals! •

    Can use variables! • Use Ansible modules
  4. 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.
  5. Playbook • Tasks are executed synchronously! • In parallel across

    hosts! • Execution moves on until all tasks complete or all hosts have failed