No description
|
|
||
|---|---|---|
| .forgejo/workflows | ||
| collections | ||
| inventory | ||
| roles | ||
| .ansible-lint | ||
| .gitignore | ||
| ansible.cfg | ||
| install_common_key.yml | ||
| install_node_exporter.yml | ||
| kubernetes.yml | ||
| LICENSE | ||
| README.md | ||
| setup_k3s.yml | ||
| vms_remove_snapshots.yml | ||
| vms_upgrade.yml | ||
| vpn_relay_wireguard.yml | ||
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