update: remove obsolete traefik service configuration and add playbook for copying K3s config

This commit is contained in:
jon brookes 2025-08-08 17:41:57 +01:00
parent 514e05a1f6
commit eba7f8322d
4 changed files with 79 additions and 57 deletions

View file

@ -103,23 +103,6 @@ else
echo "Provisioning block already present in $BASHRC"
fi
echo ""
echo "user id is $(id)"
echo "group id is $(groups)"
ls -al /home/vagrant/ansible
echo ""
cat /vagrant/ansible/ansible_inventory.ini
echo ""
echo "root keys"
ls -al ~/.ssh/vm*_key
echo "vagrant keys"
ls -al /home/vagrant/.ssh/vm*_key
ANSIBLE_HOST_KEY_CHECKING=False ansible --inventory-file /home/vagrant/ansible/ansible_inventory.ini -m ping all
if [ $? -ne 0 ]; then
@ -136,9 +119,17 @@ fi
echo "Keepalived installation completed."
# install_k3s_3node.yaml
ANSIBLE_HOST_KEY_CHECKING=False ansible-playbook install_k3s_3node.yaml --inventory-file ansible_inventory.ini | cat
ANSIBLE_HOST_KEY_CHECKING=False ansible-playbook install_k3s_3node.yaml --inventory-file ansible_inventory.ini
if [ $? -ne 0 ]; then
echo "Ansible playbook failed. Please check your Vagrant VMs and network configuration."
exit 1
fi
# copy_k8s_config.yaml
ANSIBLE_HOST_KEY_CHECKING=False ansible-playbook copy_k8s_config.yaml --inventory-file ansible_inventory.ini
if [ $? -ne 0 ]; then
echo "Ansible playbook failed. Please check your Vagrant VMs and network configuration."
exit 1
fi