Files
infrastructure/roles/gluebuddy/tasks/main.yml
Christian Heusel 7be3afb15c gluebuddy: Move from sq to rsop
The sequoia cli once again changed their interface, therefore port this
to the (somewhat guaranteed to be) stable sops interface.

Suggested-by: David Runge <dvzrv@archlinux.org>
Signed-off-by: Christian Heusel <christian@heusel.eu>
2025-02-10 14:15:04 +01:00

23 lines
737 B
YAML

- name: Install rsop
pacman: name=rsop state=present
- name: Install systemd service/timer
copy: src={{ item }} dest="/etc/systemd/system/{{ item }}" owner=root group=root mode=0644
loop:
- gluebuddy.service
- gluebuddy.timer
notify:
- Daemon reload
- name: Install conf file
template: src=gluebuddy.conf.j2 dest=/etc/conf.d/gluebuddy owner=root group=root mode=0600
- name: Install download script
copy: src=gluebuddy_download.sh dest=/usr/local/bin/gluebuddy_download.sh owner=root group=root mode=0755
- name: Download latest gluebuddy # noqa no-changed-when
command: /usr/local/bin/gluebuddy_download.sh
- name: Start and enable timer
systemd_service: name=gluebuddy.timer enabled=yes state=started