From ac1120cb4f8ce9f72fbb0b4099e8775a4c61768b Mon Sep 17 00:00:00 2001 From: Derek Nola Date: Mon, 11 Nov 2024 13:06:15 -0800 Subject: [PATCH] Set default empty extra_server_args and extra_agent_args 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 8c09d3fb4..0fe7795b3 100644 --- a/inventory-sample.yml +++ b/inventory-sample.yml @@ -21,11 +21,10 @@ k3s_cluster: # You can use ansible-vault to encrypt this value / keep it secret. 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 cf5acb9f4..aa0c2ab13 100644 --- a/roles/k3s_agent/defaults/main.yml +++ b/roles/k3s_agent/defaults/main.yml @@ -2,3 +2,4 @@ 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]