-
Notifications
You must be signed in to change notification settings - Fork 134
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add var to opt-out of rke2 service restarts
- Loading branch information
1 parent
457b145
commit 7a0833d
Showing
3 changed files
with
26 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# Isolating this loop to a file reduces log spam and resource utilization | ||
# when restarts are not required. | ||
- name: "{{ _loop_name }} {{ hostvars[_host_item].inventory_hostname }}" | ||
ansible.builtin.include_tasks: "{{ _loop_over_tasks }}" | ||
with_items: "{{ groups[rke2_cluster_group_name] }}" | ||
loop_control: | ||
loop_var: _host_item | ||
when: hostvars[_host_item].inventory_hostname == inventory_hostname |