Ansible setup for cluster provisioning
Find a file
2026-03-05 20:12:30 -05:00
.github/workflows added codeberg repo sync 2026-03-05 20:00:01 -05:00
inventory cleaned up 2025-12-06 15:19:58 -05:00
playbooks added k3s data dir stuff 2026-01-31 17:34:04 -05:00
templates Added files from timothystewart6/launchpad 2025-12-04 18:58:26 -05:00
README.md added github address to readme 2026-03-05 20:12:30 -05:00
run-update.yml added k3s update playbooks 2025-12-27 13:25:01 -05:00
run.yml added k3s data dir stuff 2026-01-31 17:34:04 -05:00

cluster-ansible

Ansible setup for cluster provisioning and maintenance.

Variable setup

Create a variable file from the sample:

cp ./inventory/group_vars/all.yml.sample ./inventory/group_vars/all.yml

Edit the variables to match the setup. Note, Bitwarden secrets can be used. See the commented out portions of the sample variables file. See ansible-integration/ for more information.

Frequently Used Commands

Prepare virtual hosts for k3s install

ansible-playbook run.yml -i ./inventory/virtual.yml

Update k3s installation on all virtual hosts

ansible-playbook run-update.yml -i ./inventory/virtual.yml

Other Example Commands

Note

The --user argument specifies the user to run commands as on the remote hosts.

Ping host test from test.yml inventory

ansible -i ./inventory/test.yml test -m ping

Run the apt.yml playbook on test.yml inventory

Note

The --ask-become-pass argument will prompt for the sudo password of the remote hosts.

ansible-playbook ./playbooks/apt.yml -i ./inventory/test.yml

Helpful References