diff --git a/roles/bitwarden/defaults/main.yaml b/roles/bitwarden/defaults/main.yaml index a815d7b..7fe89cf 100644 --- a/roles/bitwarden/defaults/main.yaml +++ b/roles/bitwarden/defaults/main.yaml @@ -2,3 +2,13 @@ bitwarden_data: /srv/bitwarden.0rpheus.net/data/ bitwarden_version: latest +bitwarden_admin_token: !vault | + $ANSIBLE_VAULT;1.1;AES256 + 65376437386330396536633962376538653534343466326562626134333932333561316366373164 + 6334396364366132383934366532386534326530303936300a613564353430396231336464326464 + 65383365313362626365353739313238633762366561643137616635306430623534653036633263 + 3162666166376262630a663438616339393736346165633861616563666366343039386135323436 + 36326364653632323034346139653635356137633037333663313139353535343366663038313063 + 32316438376230356433383431316163396234346663616265333063633662306538616139386339 + 36306137626663363635333139623831313962303237393033393762393262383830383166653765 + 30393864613339356535 diff --git a/roles/bitwarden/tasks/main.yaml b/roles/bitwarden/tasks/main.yaml index 8a3c397..f7bb939 100644 --- a/roles/bitwarden/tasks/main.yaml +++ b/roles/bitwarden/tasks/main.yaml @@ -13,6 +13,8 @@ image: "bitwardenrs/server:{{ bitwarden_version }}" pull: yes restart_policy: always + env: + ADMIN_TOKEN: "{{ bitwarden_admin_token }}" ports: - 127.0.0.1:2080:80