mirror of
https://github.com/k3s-io/k3s-ansible.git
synced 2025-12-25 00:12:37 +01:00
Set default empty extra_server_args and extra_agent_args (#377)
Signed-off-by: Derek Nola <derek.nola@suse.com>
This commit is contained in:
@@ -22,11 +22,10 @@ k3s_cluster:
|
|||||||
# Or you can omit it if not using Vagrant and let the first server automatically generate one.
|
# Or you can omit it if not using Vagrant and let the first server automatically generate one.
|
||||||
token: "changeme!"
|
token: "changeme!"
|
||||||
api_endpoint: "{{ hostvars[groups['server'][0]]['ansible_host'] | default(groups['server'][0]) }}"
|
api_endpoint: "{{ hostvars[groups['server'][0]]['ansible_host'] | default(groups['server'][0]) }}"
|
||||||
extra_server_args: ""
|
|
||||||
extra_agent_args: ""
|
|
||||||
|
|
||||||
# Optional vars
|
# Optional vars
|
||||||
|
# extra_server_args: ""
|
||||||
|
# extra_agent_args: ""
|
||||||
# cluster_context: k3s-ansible
|
# cluster_context: k3s-ansible
|
||||||
# api_port: 6443
|
# api_port: 6443
|
||||||
# k3s_server_location: /var/lib/rancher/k3s
|
# k3s_server_location: /var/lib/rancher/k3s
|
||||||
|
|||||||
@@ -3,3 +3,4 @@ server_group: server # noqa var-naming[no-role-prefix]
|
|||||||
k3s_server_location: "/var/lib/rancher/k3s" # noqa var-naming[no-role-prefix]
|
k3s_server_location: "/var/lib/rancher/k3s" # noqa var-naming[no-role-prefix]
|
||||||
systemd_dir: "/etc/systemd/system" # noqa var-naming[no-role-prefix]
|
systemd_dir: "/etc/systemd/system" # noqa var-naming[no-role-prefix]
|
||||||
api_port: 6443 # noqa var-naming[no-role-prefix]
|
api_port: 6443 # noqa var-naming[no-role-prefix]
|
||||||
|
extra_agent_args: "" # noqa var-naming[no-role-prefix]
|
||||||
|
|||||||
@@ -8,3 +8,4 @@ cluster_context: k3s-ansible # noqa var-naming[no-role-prefix]
|
|||||||
server_group: server # noqa var-naming[no-role-prefix]
|
server_group: server # noqa var-naming[no-role-prefix]
|
||||||
agent_group: agent # noqa var-naming[no-role-prefix]
|
agent_group: agent # noqa var-naming[no-role-prefix]
|
||||||
use_external_database: false # noqa var-naming[no-role-prefix]
|
use_external_database: false # noqa var-naming[no-role-prefix]
|
||||||
|
extra_server_args: "" # noqa var-naming[no-role-prefix]
|
||||||
|
|||||||
Reference in New Issue
Block a user