dotfiles/roles/vaultwarden/tasks/main.yml
Matej Focko e106973211
feat(vaultwarden): deploy from quadlet
Related to #51

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

27 lines
645 B
YAML

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