mirror of
https://github.com/famedly/ansible-collection-matrix
synced 2024-12-12 12:22:26 +00:00
fix(synapse): use appservice group IDs instead of group names
This fixes that the groups aren't available by name in the container image, so we're using the IDs instead.
This commit is contained in:
parent
4ee415f8e5
commit
2ae5058842
2 changed files with 3 additions and 2 deletions
|
@ -44,7 +44,8 @@
|
||||||
entrypoint: "python"
|
entrypoint: "python"
|
||||||
command: "{{ item.container_command }}"
|
command: "{{ item.container_command }}"
|
||||||
env: "{{ matrix_synapse_docker_env }}"
|
env: "{{ matrix_synapse_docker_env }}"
|
||||||
user: "{{ synapse_user.uid }}:{{ appservice_group.gid }}"
|
user: "{{ synapse_user.uid }}:{{ synapse_user.group }}"
|
||||||
|
groups: "{{ appservice_group.results | map(attribute='gid') }}"
|
||||||
volumes: "{{ matrix_synapse_docker_volumes + item.extra_volumes }}"
|
volumes: "{{ matrix_synapse_docker_volumes + item.extra_volumes }}"
|
||||||
ports: "{{ item.ports | default(omit) }}"
|
ports: "{{ item.ports | default(omit) }}"
|
||||||
healthcheck:
|
healthcheck:
|
||||||
|
|
|
@ -79,7 +79,7 @@
|
||||||
entrypoint: "{{ matrix_synapse_docker_entrypoint }}"
|
entrypoint: "{{ matrix_synapse_docker_entrypoint }}"
|
||||||
command: "{{ matrix_synapse_docker_command }}"
|
command: "{{ matrix_synapse_docker_command }}"
|
||||||
user: "{{ synapse_user.uid }}:{{ synapse_user.group }}"
|
user: "{{ synapse_user.uid }}:{{ synapse_user.group }}"
|
||||||
groups: "{{ matrix_synapse_appservice_groups }}"
|
groups: "{{ appservice_group.results | map(attribute='gid') }}"
|
||||||
volumes: "{{ matrix_synapse_docker_volumes }}"
|
volumes: "{{ matrix_synapse_docker_volumes }}"
|
||||||
restart_policy: unless-stopped
|
restart_policy: unless-stopped
|
||||||
state: started
|
state: started
|
||||||
|
|
Loading…
Reference in a new issue