k3s-upgrade lint naming

Signed-off-by: Derek Nola <derek.nola@suse.com>
This commit is contained in:
Derek Nola
2026-01-12 11:24:40 -08:00
parent 974b92d9f1
commit e4f8d8d737

View File

@@ -47,6 +47,7 @@
when: server_group in group_names when: server_group in group_names
block: block:
- name: Determine if tls-san is already in config or args - name: Determine if tls-san is already in config or args
# noqa var-naming[no-role-prefix]
ansible.builtin.set_fact: ansible.builtin.set_fact:
_api_endpoint_in_args: >- _api_endpoint_in_args: >-
{% if api_endpoint is defined and extra_server_args | default('') | regex_search('--tls-san[=\s]+' + api_endpoint | regex_escape(), ignorecase=True) %} {% if api_endpoint is defined and extra_server_args | default('') | regex_search('--tls-san[=\s]+' + api_endpoint | regex_escape(), ignorecase=True) %}
@@ -60,6 +61,7 @@
- api_endpoint is defined - api_endpoint is defined
- api_endpoint != ansible_hostname - api_endpoint != ansible_hostname
- not (_api_endpoint_in_args | trim | bool) - not (_api_endpoint_in_args | trim | bool)
# noqa var-naming[no-role-prefix]
ansible.builtin.set_fact: ansible.builtin.set_fact:
opt_tls_san: "--tls-san={{ api_endpoint }}" opt_tls_san: "--tls-san={{ api_endpoint }}"