A few simple ansible roles I use on my home network and VPS's.
- Clone this repo:
git clone https://github.com/binarypenguin/automation.git - Create an inventory if you desire. Each inventory (
hosts) can be a sub directory ofinventories. Localhost already exists if you just want to run against your local machine. (See Ansible Inventory) - Have a look at
playbook.ymlfor groups that are available and the roles that are applied to them - It's recommended to run Ansible from in a virtualenv.
cd automationvirtualenv venvsource venv/bin/activatepip install -r requirements.txt- Now you have ansible ready for use, just run:
ansible-playbook playbook.yml -i inventories/localhost - When you are done, you can exit the virutalenv:
deactivate
Installs a few common utilities on each machine.
Installs Workstation only application.