Skip to content
Snippets Groups Projects
Verified Commit 7210765c authored by Jan Alexander Steffens (heftig)'s avatar Jan Alexander Steffens (heftig)
Browse files

roles/archbuild: Add user units for nightly builds

parent 9b1f3f92
No related branches found
No related tags found
No related merge requests found
[Unit]
Description=Build of %I
RequiresMountsFor=/var/lib/archbuild
[Service]
Type=oneshot
ExecStart=/usr/local/bin/mkpkg %I
Nice=19
IOSchedulingClass=best-effort
IOSchedulingPriority=7
[Unit]
Description=Nightly build of %I
[Timer]
OnCalendar=22:00
RandomizedDelaySec=8h
[Install]
WantedBy=timers.target
......@@ -24,6 +24,12 @@
notify:
- daemon reload
- name: install archbuild user units
copy: src={{ item }} dest=/etc/systemd/user/{{ item }} owner=root group=root mode=0644
with_items:
- mkpkg@.timer
- mkpkg@.service
- name: start and enable archbuild mounts
service: name={{ item }} enabled=yes state=started
with_items:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment