Ansible

by Martin Micunda

Options to Automate IT

Reasons for Ansible

  • No Master Server
  • No Agents (SSH)
  • Configuration in Yaml
  • Very easy to Learn (Great Docs)

Ansible works via SSH. No Master Servers! No Agent on the Server is required!

What can you automate?

  • Installation and configuration of services 
  • Code deployment 
  • Provisioning

Inventory

[mongo-master]
168.197.1.10

[mongo-slaves]
168.197.1.11
168.197.1.12
168.197.1.13

[www]
168.197.1.14

Inventory

[mongo-master]
168.197.1.10

[mongo-slaves]
mongo1.server
mongo2.server
mongo3.server

[www]
168.197.1.14

Playbooks

  • Contains one or more plays
  • Written in YAML
    • Declare configuration
    • YAML is not code
  • Executed in the order it is written

Questions?

Thanks!