diff --git a/galaxy.yml b/galaxy.yml index 24a7677..e8bffcf 100644 --- a/galaxy.yml +++ b/galaxy.yml @@ -3,7 +3,7 @@ namespace: uumas name: podman description: Roles for installing services in podman containers readme: README.md -version: 0.1.3 +version: 0.1.4 repository: "https://git.uumas.fi/uumas/ansible-podman" license_file: LICENSE authors: diff --git a/roles/euro_office/README.md b/roles/euro_office/README.md new file mode 100644 index 0000000..b3a3b06 --- /dev/null +++ b/roles/euro_office/README.md @@ -0,0 +1 @@ +Sets up a Euro Office podman container. diff --git a/roles/euro_office/meta/argument_specs.yaml b/roles/euro_office/meta/argument_specs.yaml new file mode 100644 index 0000000..ce9ea24 --- /dev/null +++ b/roles/euro_office/meta/argument_specs.yaml @@ -0,0 +1,14 @@ +--- +argument_specs: + main: + description: Sets up a Euro Office podman container. + options: + euro_office_domains: + description: A list of domains the container should listen on. + type: list + required: true + elements: str + euro_office_jwt_secret: + description: JWT secret, must be at least 32 characters long + type: str + required: true diff --git a/roles/euro_office/tasks/main.yaml b/roles/euro_office/tasks/main.yaml new file mode 100644 index 0000000..1eaf588 --- /dev/null +++ b/roles/euro_office/tasks/main.yaml @@ -0,0 +1,31 @@ +--- +- name: Euro-Office service + ansible.builtin.import_role: + name: service + vars: + service_name: euro-office + service_container_image: ghcr.io/euro-office/documentserver:latest + service_container_mounts: + - type: volume + source: data + destination: /var/lib/euro-office/documentserver + - type: volume + source: private + destination: /var/www/euro-office/Data + service_container_http_port: 80 + service_domains: "{{ euro_office_domains }}" + service_database_type: postgres + service_database_secret_type: env + service_database_secret_target: DB_PWD + service_redis: true + service_container_secrets: + - name: jwt + type: env + target: JWT_SECRET + value: "{{ euro_office_jwt_secret }}" + service_container_env: + DB_HOST: postgres + DB_USER: euro_office + DB_NAME: euro_office + DB_PASSWORD__FILE: /run/secrets/postgres + REDIS_SERVER_HOST: redis