working: ansible

This commit is contained in:
Kyattsukuro 2026-10-09 23:16:47 +02:00
parent 9f99afef8e
commit a056e6be9e
4 changed files with 12 additions and 14 deletions

View File

@ -6,4 +6,3 @@ community.docker.docker_compose_v2:
services: ["vaultwarden"]
state: "restarted"
when: not _vaultwarden_already_restarted

View File

@ -16,5 +16,5 @@ galaxy_info:
# NOTE: A tag is limited to a single word comprised of alphanumeric characters.
# Maximum 20 tags per role.
# dependencies:
# - role: base
dependencies:
- role: traefik

View File

@ -21,11 +21,10 @@
- name: template docker-compose
template:
src: compose.yaml.j2
dest: "{{ path }}/compose.yaml"
src: compose.yml.j2
dest: "{{ path }}/compose.yml"
notify: restart container
- name: ensure containers are running
community.docker.docker_compose_v2:
project_src: "{{ path }}"

View File

@ -7,7 +7,7 @@ services:
DOMAIN: "https://{{ vaultwarden.url }}"
ADMIN_TOKEN: "{{ vaultwarden_admin_token_hash.stdout | replace('$', '$$') }}"
{% if vaultwarden.oidc.enabled -%}
{% if vaultwarden.oidc.issuer | length >= 1 -%}
SSO_ENABLED: "true"
SSO_PKCE: "true"
SSO_AUTHORITY: "{{ vaultwarden.oidc.issuer }}"