28 lines
645 B
YAML
28 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"
|