Closed cheddarwhizzy closed 2 years ago
I am not sure about this. I think you can just rerun the playbook on an existing cluster and it will add the new nodes. I would think you would want your host.ini
file to specify your desired state, not just the nodes you want to add.
This is failing tests and while we might want to support adding nodes using this playbook, I am not too sure about the approach. See https://github.com/techno-tim/k3s-ansible/pull/98#issuecomment-1256853034 I think we'll need to think this through and also agree that this is something we want to add. I've added https://github.com/techno-tim/k3s-ansible/issues/107 to discuss.
Proposed Changes
In a scenario where you add nodes/agents in separate runs of Ansible, such as:
Cloud - master(s)/control plane
On-Prem - node(s)/agent
The "On-Prem"/node-only inventory currently fails. Weird because I thought
default
was sort of a try/catch answer for Jinja.Error without
[master]
defined in inventory:Error with no hosts under
[master]
inventory:Checklist
site.yml
playbookreset.yml
playbook