From 2a5a89a5ad5afc8ce0bd6112450e956dcdcde74f Mon Sep 17 00:00:00 2001 From: Derek Nola Date: Tue, 12 Nov 2024 09:11:34 -0800 Subject: [PATCH] Set default empty extra_server_args and extra_agent_args (#377) Signed-off-by: Derek Nola --- inventory-sample.yml | 5 ++--- roles/k3s_agent/defaults/main.yml | 1 + roles/k3s_server/defaults/main.yml | 1 + 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/inventory-sample.yml b/inventory-sample.yml index e237881fd..95ae3d147 100644 --- a/inventory-sample.yml +++ b/inventory-sample.yml @@ -22,11 +22,10 @@ k3s_cluster: # Or you can omit it if not using Vagrant and let the first server automatically generate one. token: "changeme!" api_endpoint: "{{ hostvars[groups['server'][0]]['ansible_host'] | default(groups['server'][0]) }}" - extra_server_args: "" - extra_agent_args: "" # Optional vars - + # extra_server_args: "" + # extra_agent_args: "" # cluster_context: k3s-ansible # api_port: 6443 # k3s_server_location: /var/lib/rancher/k3s diff --git a/roles/k3s_agent/defaults/main.yml b/roles/k3s_agent/defaults/main.yml index c190cc64d..c35f2684a 100644 --- a/roles/k3s_agent/defaults/main.yml +++ b/roles/k3s_agent/defaults/main.yml @@ -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] systemd_dir: "/etc/systemd/system" # noqa var-naming[no-role-prefix] api_port: 6443 # noqa var-naming[no-role-prefix] +extra_agent_args: "" # noqa var-naming[no-role-prefix] diff --git a/roles/k3s_server/defaults/main.yml b/roles/k3s_server/defaults/main.yml index b19d69277..ce7297058 100644 --- a/roles/k3s_server/defaults/main.yml +++ b/roles/k3s_server/defaults/main.yml @@ -8,3 +8,4 @@ cluster_context: k3s-ansible # noqa var-naming[no-role-prefix] server_group: server # 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] +extra_server_args: "" # noqa var-naming[no-role-prefix]