A complete ansible infrastructure for my personal server. Hosts a variety of FOSS applications through docker deployments within individual ansible roles.
Contains default credentials but these should be overwritten with group or host -destined variables. Add default credentials Hide real credential files from git |
||
|---|---|---|
| group_vars | ||
| host_vars | ||
| roles | ||
| .gitignore | ||
| ansible.cfg | ||
| inv-dev.yml | ||
| inv-staging.yml | ||
| README.md | ||
| site-dev.yml | ||
| site.yml | ||
| Vagrantfile | ||
Cloudserve infrastructure
Testing
This repository comes with a test-ready setup to try out the complete site setup locally.
It uses vagrant to accomplish this and create a pretend target host.
So, install vagrant on your system and to make tests repeatable also install the vagrant plugins vagrant-hosts and vagrant-hostsupdater.
vagrant plugin install vagrant-hosts vagrant-hostsupdater
Then you are ready to run the complete infrastructure setup locally,
simply by executing ansible-playbook site.yml.
You can of course pick and choose what should be executed with host limits, tags, group variables, and so on,
but this should provide an easy way to see if a) the playbook is working as intended and b) what it does is useful.