Bugfix, missing k3s_start_on_boot to control systemd.enabled added.

This commit is contained in:
Xan Manning 2021-01-30 17:57:50 +00:00
parent 2c12436226
commit 5555bd3d9b
3 changed files with 10 additions and 2 deletions

View File

@ -14,6 +14,14 @@
---
-->
## 2021-01-30, v2.5.2
### Notable changes
- Bugfix, missing `k3s_start_on_boot` to control `systemd.enabled` added.
---
## 2021-01-30, v2.5.1
### Notable changes

View File

@ -61,7 +61,7 @@
ansible.builtin.systemd:
name: k3s
state: started
enabled: true
enabled: "{{ k3s_start_on_boot }}"
register: ensure_secondary_controllers_started
until: ensure_secondary_controllers_started is succeeded
retries: "{{ ansible_play_hosts_all | length }}"

View File

@ -18,7 +18,7 @@
ansible.builtin.systemd:
name: k3s
state: started
enabled: true
enabled: "{{ k3s_start_on_boot }}"
scope: "{{ k3s_systemd_context }}"
when: (k3s_control_node and k3s_controller_list | length == 1)
or (k3s_primary_control_node and k3s_controller_list | length > 1)