Skip to content

cvsickle/cluster-ansible

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Ansible setup for cluster provisioning

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors