diff options
| author | Kumar <kumar@kumardamani.xyz> | 2021-11-23 14:59:08 +0000 |
|---|---|---|
| committer | Kumar Damani <me@kumardamani.net> | 2022-03-25 19:45:25 +0000 |
| commit | a857eb82ec9c4a79ad5e41462e2ab82c2660982e (patch) | |
| tree | 9ca51ddfb551322bd4d2fa3f949fa8898032632d /roles/bitwarden/tasks | |
initial commit
Diffstat (limited to 'roles/bitwarden/tasks')
| -rw-r--r-- | roles/bitwarden/tasks/main.yaml | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/roles/bitwarden/tasks/main.yaml b/roles/bitwarden/tasks/main.yaml new file mode 100644 index 0000000..5fd0ed4 --- /dev/null +++ b/roles/bitwarden/tasks/main.yaml @@ -0,0 +1,17 @@ +--- + +- name: 'Make sure the Vaultwarden container is created and running' + docker_container: + name: '{{ bitwarden_container_name }}' + image: 'vaultwarden/server' + pull: true + state: 'started' + env: + WEBSOCKET_ENABLED: 'true' + INVITATIONS_ALLOWED: 'true' + SIGNUPS_ALLOWED: 'false' + volumes: + - "{{ bitwarden_data_dir }}:/data" + ports: + - '{{ bitwarden_host_port }}:80' + restart_policy: unless-stopped |
