: add vaultwarden

This commit is contained in:
VC
2025-02-07 14:15:00 +01:00
parent 6aa87d851e
commit b427a1fc7f
9 changed files with 665 additions and 3 deletions

View File

@@ -0,0 +1,24 @@
---
- name: Install Vaultwarden Web
ansible.builtin.apt:
deb: "{{ vaultwarden_web_url }}"
- name: Install Vaultwarden
ansible.builtin.apt:
deb: "{{ vaultwarden_url }}"
- name: Put config file
ansible.builtin.template:
src: vaultwarden.env.j2
dest: "/etc/vaultwarden/vaultwarden.env"
owner: root
group: vaultwarden
mode: "0o640"
notify:
- Restart vaultwarden
- name: Ensure vaultwarden is started
ansible.builtin.service:
name: vaultwarden
state: started