DevOpt

Ansible How To

Category & Tags: Ansible, Server, Cloud/Cluster, Management, DevOpt, Puppet

A simple video tutorial OBS: ansible uses py, and py calls /bin/sh, NOT bash ! PRE-CONFIG # suggested: use ssh-pub-key auth without passphrase. INSTALL # Optioanl: add ppa:ansible/ansible installation: sudo apt-get update && \ sudo apt-get install ansible HOSTS # vim /etc/ansible/hosts master.ip.1 [slaves] slave.domain1 slave.ip.addr.2 [slavesGroup2] slave.domain2 slave.ip.addr.1 (see ref to give hosts’ names individually.) SLAVE USERNAME # sudo mkdir /etc/ansible/group_vars && \ sudo echo '---' > /etc/ansible/group_vars/all && \ sudo echo 'ansible_ssh_user: root' >> /etc/ansible/group_vars/all (see DigitalOcean ref to config hosts individually. ...