No description
Find a file
Roshless b031c33dc4
All checks were successful
/ lint (push) Successful in 25s
gitlab switched to forgejo
2025-12-09 23:37:07 +01:00
.forgejo/workflows CI: do not fail when linting rules fail 2025-12-06 02:28:05 +01:00
collections requirements: add missing 2023-06-08 15:36:17 +02:00
inventory gitlab switched to forgejo 2025-12-09 23:37:07 +01:00
roles linting fixing 2025-09-11 22:45:25 +02:00
.ansible-lint lint ignore package latest 2025-09-11 22:45:10 +02:00
.gitignore add local file to gitignore 2025-09-05 23:55:39 +02:00
ansible.cfg add common ansible config 2025-09-11 12:11:47 +02:00
install_common_key.yml linting: hopefully last fixes 2023-06-08 15:36:35 +02:00
install_node_exporter.yml linting fixing 2025-09-11 22:45:25 +02:00
kubernetes.yml add simple kubernetes install role 2023-06-06 23:55:41 +02:00
LICENSE Add LICENSE 2021-10-16 01:42:26 +02:00
README.md update documentation 2025-09-09 01:32:27 +02:00
setup_k3s.yml formatting 2025-09-11 22:05:43 +02:00
vms_remove_snapshots.yml linting fixing 2025-09-11 22:45:25 +02:00
vms_upgrade.yml linting fixing 2025-09-11 22:45:25 +02:00
vpn_relay_wireguard.yml formatting 2025-09-11 22:05:43 +02:00

ansible

Here be playbooks for my servers. All should be migrated to Alpine Linux in some time.

Setup

Install galaxy modules: ansible-galaxy collection install --upgrade -r collections/requirements.yml

secrets

Add requried secrets to localvars.yaml in this repo.

Then use all commands with parameter -e "@localvars.yaml"

I put these vars into this file:

---
# Not needed because of ssh config
#doom_ip: 1.2.3.4
#doom_port: 2137
ansible_sudo_pass: "hunter2"
ansible_doas_pass: "yellow5"

VM upgrade procedure

Running the thing: ansible-playbook -e "@localvars.yaml" -i inventory vms_upgrade.yml

Just removing the snapshots (AFTER some time and making sure everything is up!): ansible-playbook -e "@localvars.yaml" -i inventory vms_remove_snapshots.yml