Playbooks for orchestrating Ubuntu servers, based on the DebOps framework.
You need to install the DebOps framework first:
pip2 install debops
After that you can clone this repo and fill out the ansible/inventory/hosts
file.
git clone [email protected]:gabor-udvari/automation-project.git
cd automation-project
mkdir ansible/inventory
touch hosts
Example hosts file:
[debops_all_hosts]
server1 ansible_connection=local
server2
[debops_service_nginx]
server2
You can use the debops
command to launch the ansible playbooks. You can run specific playbooks or limit the run with tags:
debops playbooks/upgrade.yml
debops --tags 'role::nginx'
debops --limit server2