Ansible setup for cluster provisioning and maintenance.
- Github: https://github.com/cvsickle/cluster-ansible
- Codeberg: https://codeberg.org/cvsickle/cluster-ansible
Create a variable file from the sample:
cp ./inventory/group_vars/all.yml.sample ./inventory/group_vars/all.ymlEdit 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.
ansible-playbook run.yml -i ./inventory/virtual.ymlansible-playbook run-update.yml -i ./inventory/virtual.ymlNote
The --user argument specifies the user to run commands as on the remote hosts.
ansible -i ./inventory/test.yml test -m pingNote
The --ask-become-pass argument will prompt for the sudo password of the remote hosts.
ansible-playbook ./playbooks/apt.yml -i ./inventory/test.yml