Ansible
http://docs.ansible.com/ansible/latest/index.html
Installing Ansible on Mac OS X
- Install pip: https://pip.pypa.io/en/stable/installing/
sudo easy_install pipsudo pip install ansible
http://docs.ansible.com/ansible/intro_installation.html#latest-releases-via-pip
Cloning Private Repos
- In Vagrant, use SSH Agent Forwarding: http://codingitwrong.com/2017/11/08/its-2017-and-cloning-private-repos-in-vagrant-is-still-terrible.html
- On a cloud server, I haven’t been able to get SSH agent forwarding working. Just copy a private key file to ~/.ssh/
Common Modules http://docs.ansible.com/ansible/latest/modules_by_category.html
Misc
- command: simple commands that don’t need shell features
- docker_service: start containers
- git: clone repos
- service: restart services
- shell: full shell access including piping
Files
- copy: upload
- file: create dirs/symlinks/permissions
- get_url: curl
- lineinfile
- template: fill variables into a file
Packages
Slapdash