homelab/roles/vaultwarden/tasks/main.yml

22 lines
509 B
YAML
Raw Normal View History

2024-09-29 18:04:34 +05:00
---
- name: Create vaultwarden docker volume
become: true
community.docker.docker_volume:
name: vaultwarden
- name: Create vaultwarden container
become: true
community.docker.docker_container:
name: vaultwarden
image: vaultwarden/server:1.32.0
env:
DOMAIN: "{{ domain }}"
LOG_LEVEL: warn
DATABASE_URL: "{{ db_url }}"
networks:
- name: postgresql
ports:
- 127.0.0.1:3002:80
volumes:
- vaultwarden:/data
restart_policy: unless-stopped