Update customized live image weekly.
This commit is contained in:
parent
adaa730c07
commit
62931a927f
4 changed files with 34 additions and 0 deletions
6
roles/edulive/files/livebuilder.service
Normal file
6
roles/edulive/files/livebuilder.service
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
[Unit]
|
||||||
|
Description=Run livebuilder script
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
Type=simple
|
||||||
|
ExecStart=/usr/local/sbin/livebuilder.sh
|
11
roles/edulive/files/livebuilder.timer
Normal file
11
roles/edulive/files/livebuilder.timer
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
[Unit]
|
||||||
|
Description=Run livebuilder script weekly
|
||||||
|
|
||||||
|
[Timer]
|
||||||
|
OnCalendar=weekly
|
||||||
|
Persistent=true
|
||||||
|
AccuracySec=3h
|
||||||
|
RandomizedDelaySec=3h
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=timers.target
|
|
@ -3,3 +3,10 @@
|
||||||
command:
|
command:
|
||||||
cmd: livebuilder.sh
|
cmd: livebuilder.sh
|
||||||
listen: run build script
|
listen: run build script
|
||||||
|
|
||||||
|
- name: enable timer for livebuilder
|
||||||
|
systemd:
|
||||||
|
name: livebuilder.timer
|
||||||
|
state: started
|
||||||
|
enabled: true
|
||||||
|
listen: enable livebuilder.timer
|
||||||
|
|
|
@ -17,6 +17,16 @@
|
||||||
dest: /usr/local/sbin/
|
dest: /usr/local/sbin/
|
||||||
mode: 0755
|
mode: 0755
|
||||||
|
|
||||||
|
- name: provide service and timer for livebuilder
|
||||||
|
copy:
|
||||||
|
src: "{{ item }}"
|
||||||
|
dest: "/etc/systemd/system/{{ item }}"
|
||||||
|
mode: 0644
|
||||||
|
with_items:
|
||||||
|
- livebuilder.service
|
||||||
|
- livebuilder.timer
|
||||||
|
notify: "enable livebuilder.timer"
|
||||||
|
|
||||||
- name: copy live-build configuration
|
- name: copy live-build configuration
|
||||||
copy:
|
copy:
|
||||||
src: "{{ item }}"
|
src: "{{ item }}"
|
||||||
|
|
Loading…
Add table
Reference in a new issue