mirror of
https://github.com/famedly/ansible-collection-matrix
synced 2024-11-10 21:54:15 +00:00
feat(synapse): add option to refresh container certificates
This commit is contained in:
parent
6f3205c533
commit
f6ee493e97
2 changed files with 14 additions and 0 deletions
|
@ -71,3 +71,7 @@ matrix_synapse_worker_client_endpoints: >-
|
|||
+ matrix_synapse_worker_client_login_endpoints
|
||||
}}
|
||||
|
||||
# Certificate management
|
||||
matrix_synapse_container_certificate_refresh: false
|
||||
matrix_synapse_container_certificate_refresh_command: "update-ca-certificates --fresh"
|
||||
matrix_synapse_container_certificate_refresh_user_id: 0
|
||||
|
|
|
@ -87,5 +87,15 @@
|
|||
volumes: "{{ matrix_synapse_docker_volumes }}"
|
||||
restart_policy: unless-stopped
|
||||
state: started
|
||||
register: matrix_synapse_container_started
|
||||
when: matrix_synapse_deployment_method == "docker"
|
||||
tags: ['deploy', 'deploy-synapse']
|
||||
|
||||
- name: Refresh container certificates if required
|
||||
community.docker.docker_container_exec:
|
||||
container: "{{ matrix_synapse_container_name }}"
|
||||
command: "{{ matrix_synapse_container_certificate_refresh_command }}"
|
||||
user: "{{ matrix_synapse_container_certificate_refresh_user_id }}"
|
||||
notify: restart matrix-synapse
|
||||
when: matrix_synapse_container_certificate_refresh and matrix_synapse_deployment_method == "docker" and matrix_synapse_container_started.changed
|
||||
tags: ['deploy', 'deploy-synapse']
|
||||
|
|
Loading…
Reference in a new issue