20. Installation
Pro
On Mac OSX is a piece of cake
Debian/Ubuntu
$ brew update
$ brew install ansible
$ sudo apt-add-repository -y ppa:ansible/ansible
$ sudo apt-get update
$ sudo apt-get -y install ansible
"Windows is not official supported as controller machine"
21. Installation
•Servers should be accessible via SSH
using keypair authentication
•It's reccomended to have a user with sudo
permission to run the tasks in the server
How to configure SSH access for running Ansible
bit.ly/ansible-ssh
33. Modules
All standard modules are part of
core, no abandoned modules
All core modules are written in
Python
You can write custom modules
in any language
(eg. helper code in Ruby)
34. Modules
$ ansible all -s -m shell -a 'apt-get
install nginx'
$ ansible all -s -m shell -a 'service
mysqld restart'