spark/roles/units/tasks/main.yml
2024-12-01 20:21:53 -08:00

30 lines
668 B
YAML

---
- name: Install GNU Units
kewlfft.aur.aur:
name: units
use: makepkg
skip_pgp_check: yes
become: yes
become_user: "{{ aur.user }}"
tags:
- aur
- name: Push GNU Units currency update service file
template:
src: units_cur.service.j2
dest: /etc/systemd/system/units_cur.service
notify:
- reload systemd config
- name: Push GNU Units currency update timer file
template:
src: units_cur.timer.j2
dest: /etc/systemd/system/units_cur.timer
notify:
- reload systemd config
- restart units_cur
- include_tasks: roles/nmtrust/tasks/unit.yml
vars:
unit: units_cur.timer
run_on: "{{ units.run_on }}"