histalek
39476da79e
This Makefile is quite simple for now. But in the future i plan to create multiple ansible role skeletons and this Makefile can simplify the usage of these quite a bit. I learned about self-documenting Makefiles from Sheo's Blog [1] and the referenced article from Victoria Drake [2]. [1] https://shivering-isles.com/til/2021/05/self-documenting-makefiles [2] https://victoria.dev/blog/how-to-create-a-self-documenting-makefile/ |
||
---|---|---|
.ansible/skeleton/default | ||
guides | ||
playbooks | ||
roles | ||
.editorconfig | ||
.gitlab-ci.yml | ||
.renovaterc.json | ||
.vault_pass | ||
ansible.cfg | ||
LICENSE | ||
Makefile | ||
README.md | ||
requirements.yml |
Infrastructure
Ansible infrastructure playbooks/roles for the saibotk.de services.
Requirements
Some roles may need specific python libraries etc. installed on the Ansible client (for example python-influxdb for the roles/monitoring role).
Setup
Install all required roles from ansible galaxy using:
ansible-galaxy install -f -r requirements.yml
Run with your local (test) inventory:
ansible-playbook -i test.inventory playbooks/PLAYBOOK.yml
Create new roles
When creating new roles, you can set up an initial folder structure with Ansible-Galaxy and the default skeleton folder structures defined in .ansible/skeleton. For more information check out the Ansible documentation here
cd roles
ansible-galaxy init ROLE_NAME
License
This repository is licensed under GPL-3 and many roles are derived from the awesome infrastructure repository published by Sheogorath.
Thank you, and so I hope this can be as useful to someone else as Sheogorath's repository was to me.