Skip to content

Commit b66e6e3

Browse files
committed
fix: Allow empty rke2_agents_group_name
When the group specified doesn't exist, the role can still deploy only a control plane.
1 parent 2588ea0 commit b66e6e3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

templates/config.yaml.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ profile: {{ rke2_cis_profile }}
5959
{{ option }}
6060
{% endfor %}
6161
{% endif %}
62-
{% if rke2_agent_options is defined and inventory_hostname in groups[rke2_agents_group_name] %}
62+
{% if rke2_agent_options is defined and inventory_hostname in groups[rke2_agents_group_name] | default([]) %}
6363
{% for option in rke2_agent_options %}
6464
{{ option }}
6565
{% endfor %}

0 commit comments

Comments
 (0)