srht: Add alpine rebuild service/timer The Alpine Linux image is a bit more stable than the Arch Linux one. So we support both for now.
3 files changed, 35 insertions(+), 0 deletions(-) A roles/srht/files/alpine-rebuild.service A roles/srht/files/alpine-rebuild.timer M roles/srht/tasks/main.yml
A roles/srht/files/alpine-rebuild.service => roles/srht/files/alpine-rebuild.service +8 -0
@@ 0,0 1,8 @@ [Unit] Description=Rebuild Alpine Linux image After=network.target [Service] Type=oneshot User=root ExecStart=/usr/bin/builds.sr.ht/submit_image_build -n "Alpine rebuild" -u "https://builds.xenrox.net" -p "/var/lib/images/builds" alpine
A roles/srht/files/alpine-rebuild.timer => roles/srht/files/alpine-rebuild.timer +9 -0
@@ 0,0 1,9 @@ [Unit] Description=Rebuild Alpine Linux image timer [Timer] OnCalendar=Tue *-*-* 09:00:00 Persistent=true [Install] WantedBy=timers.target
M roles/srht/tasks/main.yml => roles/srht/tasks/main.yml +18 -0
@@ 307,3 307,21 @@ name: safe.directory scope: system value: "*" - name: Install Alpine rebuild service ansible.builtin.copy: src: "{{ item }}" dest: "/etc/systemd/system/{{ item }}" owner: root group: root mode: "0644" with_items: - alpine-rebuild.service - alpine-rebuild.timer - name: Enable Alpine rebuild timer ansible.builtin.systemd: name: alpine-rebuild.timer enabled: true state: started daemon_reload: true