blob: 0fd7b8635d54d9e6cd79090acea32c6c71c626e5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
---
- name: 'Ensure bitwarden data dir exists'
file:
path: "{{ bitwarden_data_dir }}"
state: "directory"
mode: '755'
- name: 'Make sure the Vaultwarden container is created and running'
docker_container:
name: '{{ bitwarden_container_name }}'
image: 'vaultwarden/server'
pull: true
state: 'started'
recreate: true
env:
WEBSOCKET_ENABLED: 'true'
INVITATIONS_ALLOWED: 'true'
SIGNUPS_ALLOWED: 'false'
volumes:
- "{{ bitwarden_data_dir }}:/data"
ports:
- '{{ bitwarden_host_port }}:80'
restart_policy: unless-stopped
|