Reload reverse-proxy configuration when registry container has been restarted instead of restarting the whole container.

This commit is contained in:
yohan 2024-11-01 12:43:20 +01:00
parent 6aa53bb7ad
commit 26b35467ec

View File

@ -135,10 +135,10 @@
# Workaround to prevent unexplained 503 error from reverse-proxy
# after registry container restart
- name: Restart reverse-proxy container service
ansible.builtin.systemd:
name: container-reverse-proxy
state: restarted
- name: Reload reverse-proxy configuration
containers.podman.podman_container_exec:
name: reverse-proxy
command: 'sh -c ''service apache2 reload'''
become: true
- name: Add cloud.{{ DOMAIN }} to /etc/hosts