add bitwarden

This commit is contained in:
Michael Rennecke
2020-04-19 21:22:19 +02:00
parent b372e0930c
commit ca3c6760ba
4 changed files with 33 additions and 1 deletions

View File

@@ -0,0 +1,4 @@
---
bitwarden_data: /srv/bitwarden.0rpheus.net/data/
bitwarden_version: latest

View File

@@ -0,0 +1,20 @@
---
- name: bitwarden data
file:
path: "{{ bitwarden_data }}"
state: directory
recurse: yes
- name: bitwarden container
docker_container:
name: bitwarden.0rpheus.net
image: "bitwardenrs/server:{{ bitwarden_version }}"
pull: yes
restart_policy: always
ports:
- 127.0.0.1:2080:80
volumes:
- "{{ bitwarden_data }}:/data/:rw"