dotfiles/roles/forgejo/tasks/main.yml
Matej Focko 5057b9fed1
feat(forgejo): add quadlet deployment
Related to #51

Signed-off-by: Matej Focko <me@mfocko.xyz>
2024-11-14 15:40:40 +01:00

19 lines
430 B
YAML

---
- name: Install the Forgejo quadlets
ansible.builtin.template:
src: "templates/{{ item }}"
dest: "/etc/containers/systemd/{{ item }}"
mode: 0644
owner: root
group: root
loop:
- forgejo.container
- forgejo.network
- forgejo.volume
- name: Enable the Forgejo quadlet
ansible.builtin.systemd_service:
daemon_reload: true
enabled: true
name: forgejo.service
state: "started"