infra/roles/vaultwarden/tasks/main.yml

23 lines
548 B
YAML

---
- name: ensure vaultwarden docker/compose exist
file:
path: /etc/docker/compose/vaultwarden
state: directory
owner: root
group: root
mode: 0700
- name: build vaultwarden docker-compose.yml.j2
template:
src: ../templates/docker-compose.yml.j2
dest: /etc/docker/compose/vaultwarden/docker-compose.yml
owner: root
group: root
mode: u=rw,g=r,o=r
- name: daemon-reload and enable vaultwarden
ansible.builtin.systemd_service:
state: restarted
enabled: true
name: docker-compose@vaultwarden