Basic installation
This role discovers installation mode from your ansible inventory.
For working with your inventory, it operates on two basic variables, k3s_master_group
and k3s_agent_group
, which are set to k3s_master
and k3s_agent
by default.
Following is an example of single master and 2 agents:
For group with master, k3s_master in that example, you should enable master installation with k3s_master
variable:
Accordingly, for agents, use k3s_agent
variable:
For selecting master server to connect, you can use k3s_master_ip
variable.
By default it will be set to first ansible_host in ansible group specified in k3s_master_group
variable.
Of course, you can always redefine it manually.