This contains all Ansible playbooks/roles used to deploy saibotk.de services.
Find a file
saibotk d6f99396c3
lvm_self_backup: Add timeout and mount/umount tasks to systemd service
This patch adds a timeout to notice a failure, when the container hangs and does not do anything. This happened already and with moving the mount and unmount and snapshot management to the service file, we ensure that they are properly removed after a timeout.

Thanks to @Histalek for the service config (https://git.histalek.de/histalek-de/infrastructure/-/blob/main/roles/lvm_backup/templates/backup-lvm.service)
2021-10-05 16:49:34 +02:00
.ansible/skeleton/default Add default role skeleton 2021-02-28 19:39:59 +01:00
guides Initial commit 2020-08-10 01:37:13 +02:00
playbooks playbooks: Adjust maubot and webhooks host groups to not use "-" char 2021-09-22 02:52:34 +02:00
roles lvm_self_backup: Add timeout and mount/umount tasks to systemd service 2021-10-05 16:49:34 +02:00
.editorconfig Add self-documenting Makefile 2021-06-02 23:31:44 +02:00
.gitlab-ci.yml CI: Fix ansible-lint search space 2021-09-14 00:44:30 +02:00
.renovaterc.json renovatebot: Raise pr limit & fix invalid value 2021-03-28 02:56:03 +01:00
.vault_pass Add .editorconfig & .vault_pass 2020-08-10 02:06:18 +02:00
ansible.cfg Ansible: Set transfer method to scp explicitly 2021-05-30 17:02:29 +02:00
ansible.lint.cfg CI: Fix ansible-lint search space 2021-09-14 00:44:30 +02:00
LICENSE Initial commit 2020-08-10 01:37:13 +02:00
Makefile CI: Fix ansible-lint search space 2021-09-14 00:44:30 +02:00
README.md Move playbooks into their own folder 2021-03-05 14:06:48 +01:00
requirements.yml automation: Update devsec.hardening to version 7.10.0 2021-08-17 12:04:19 +00:00

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.