Created zincati update schedule and wariness settings
This commit is contained in:
@@ -89,3 +89,34 @@
|
||||
state: stopped
|
||||
masked: true
|
||||
|
||||
- name: Set {{ ansible_user }} user to linger
|
||||
become: yes
|
||||
become_method: sudo
|
||||
command: loginctl enable-linger {{ ansible_user }}
|
||||
args:
|
||||
creates: /var/lib/systemd/linger/{{ ansible_user }}
|
||||
|
||||
- name: Set update zincati wariness to {{update_wariness}}
|
||||
become: yes
|
||||
become_method: sudo
|
||||
ansible.builtin.copy:
|
||||
dest: /etc/zincati/config.d/10-update-wariness.toml
|
||||
content: |
|
||||
[identity]
|
||||
rollout_wariness = {{update_wariness}}
|
||||
|
||||
- name: Set update schedule for zincati
|
||||
become: yes
|
||||
become_method: sudo
|
||||
ansible.builtin.copy:
|
||||
dest: /etc/zincati/config.d/20-update-schedule.toml
|
||||
content: |
|
||||
[updates]
|
||||
strategy = "periodic"
|
||||
|
||||
[[updates.periodic.window]]
|
||||
days = {{ update_schedule_days }}
|
||||
start_time = {{ update_schedule_starttime }}
|
||||
length_minutes = {{ update_schedule_length }}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user