cache: notify container restart if conf changes

TODO: split image rebuild process and container restart condition
This commit is contained in:
2026-02-09 16:13:15 +08:00
parent 66a39f8a6e
commit 585fcb63bc

View File

@@ -29,11 +29,13 @@
- ansible.builtin.copy:
dest: "{{ OBS_DEPLOY_LOCATION }}/cache/volume/cert/squid-ca.pem"
src: "{{ CACHE_SSL_CA_PEM }}"
notify: Restart Container
- name: "Preconfigure Volume: squid conf.d/"
block:
- ansible.builtin.copy:
dest: "{{ OBS_DEPLOY_LOCATION }}/cache/volume/conf.d/"
src: "{{ SQUID_CONF_D }}/"
notify: Restart Container
- name: Force Restart Containers
when: restart_container is defined
changed_when: true