Add automatic updater using ansible-pull
This commit is contained in:
parent
ecc2988b56
commit
f70f907206
3 changed files with 38 additions and 0 deletions
|
|
@ -190,6 +190,26 @@
|
|||
tags:
|
||||
- baseinstall
|
||||
|
||||
# Updater
|
||||
|
||||
- name: Provide services and timers for updater
|
||||
ansible.builtin.template:
|
||||
src: "{{ item }}.j2"
|
||||
dest: "/etc/systemd/system/{{ item }}"
|
||||
mode: '0644'
|
||||
loop:
|
||||
- lmn-updater.service
|
||||
- lmn-updater.timer
|
||||
when: misc_updater_repository | default(false) is truthy
|
||||
|
||||
- name: Enable updater.timer
|
||||
ansible.builtin.systemd:
|
||||
name: lmn-updater.timer
|
||||
enabled: true
|
||||
when:
|
||||
- misc_updater_repository | default(false) is truthy
|
||||
- misc_updater_autostart | default(false) is truthy
|
||||
|
||||
# Prepare CloneScreen on Presenter PCs
|
||||
|
||||
- name: Fix primary screen for class room PCs with projector
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue