Ansible
Call arbitrary playbooks
With ansible
# paths assume running from /ansible dir
cd ./ansible
ansible-playbook -i <path/to/inventory> -l <groupname> <path/to/playbook> --become
# e.g.
# > ansible-playbook -i ./inventory -l ubuntu ./playbooks/cluster-reboot.yaml --becomeWith just
just ansible playbook k3s-reboot kubernetes -- --becomeSend arbitrary commands
With ansible
# paths assume running from /ansible dir
cd ./ansible
ansible -i <path/to/inventory> -l <groupname> -m ansible.builtin.shell -a <shell command> --become
# e.g.
# > ansible -i ./inventory -l <groupname> -m ansible.builtin.shell -a "apt upgrade -y" --becomeWith just
just ansible cmd "apt upgrade -y" kubernetes -- --become