infrastructure/README.md

35 lines
1.2 KiB
Markdown
Raw Normal View History

2020-08-10 01:37:13 +02:00
# Infrastructure
Ansible infrastructure playbooks/roles for the saibotk.de services.
2021-01-02 10:56:38 +01:00
## Requirements
2021-03-05 14:06:48 +01:00
Some roles may need specific python libraries etc. installed on the Ansible client (for example python-influxdb for the [roles/monitoring](roles/monitoring) role).
2021-01-02 10:56:38 +01:00
## Setup
2020-08-10 01:37:13 +02:00
Install all required roles from ansible galaxy using:
```
ansible-galaxy install -f -r requirements.yml
```
Run with your local (test) inventory:
```
2021-03-05 14:06:48 +01:00
ansible-playbook -i test.inventory playbooks/PLAYBOOK.yml
2020-08-10 01:37:13 +02:00
```
2021-02-28 19:39:59 +01:00
## Create new roles
2021-03-05 14:06:48 +01:00
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](.ansible/skeleton).
2021-02-28 19:39:59 +01:00
For more information check out the Ansible documentation [here](https://docs.ansible.com/ansible/devel/galaxy/dev_guide.html#using-a-custom-role-skeleton)
```
2021-11-07 16:06:38 +01:00
make role
2021-02-28 19:39:59 +01:00
```
2021-01-02 10:56:38 +01:00
## License
2020-08-10 01:37:13 +02:00
This repository is licensed under GPL-3 and many roles are derived from the awesome [infrastructure](https://git.shivering-isles.com/shivering-isles/infrastructure) repository published by [Sheogorath](https://shivering-isles.com).
2021-11-07 16:06:38 +01:00
Thank you, and so I hope this can be as useful to someone else as Sheogorath's repository was to me.