From 593dddd00ec6e43ef7f8af5e9c10ecfd33e253e4 Mon Sep 17 00:00:00 2001 From: Sam Al-Sapti Date: Sun, 22 Jan 2023 02:00:53 +0100 Subject: [PATCH] Upgrade Passit database and temporarily pin Passit due to WebAuthn bug --- roles/docker/defaults/main.yml | 2 +- roles/docker/tasks/services/passit.yml | 9 ++++++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/roles/docker/defaults/main.yml b/roles/docker/defaults/main.yml index 626e9b3..79bf170 100644 --- a/roles/docker/defaults/main.yml +++ b/roles/docker/defaults/main.yml @@ -86,7 +86,7 @@ services: domain: "passit.{{ base_domain }}" volume_folder: "{{ volume_root_folder }}/passit" version: stable - postgres_version: "10" + postgres_version: 15-alpine allowed_sender_domain: true matrix: diff --git a/roles/docker/tasks/services/passit.yml b/roles/docker/tasks/services/passit.yml index 60cb7bf..375808f 100644 --- a/roles/docker/tasks/services/passit.yml +++ b/roles/docker/tasks/services/passit.yml @@ -1,5 +1,12 @@ # vim: ft=yaml.ansible --- +- name: Create directory for Passit data + file: + name: "{{ services.passit.volume_folder }}/data" + owner: '70' + group: root + state: directory + - name: setup passit containers docker_compose: project_name: "passit" @@ -19,7 +26,7 @@ POSTGRES_PASSWORD: "{{ postgres_passwords.passit }}" passit_app: - image: "passit/passit:{{ services.passit.version }}" + image: "passit/passit@sha256:c4b96bc67222936f58f344d5dd1020227ad8e11ad5f82ed3cbf0bcfa8fe9b2e7" #:{{ services.passit.version }}" command: "bin/start.sh" restart: "always" networks: