cache: notify container restart if conf changes
TODO: split image rebuild process and container restart condition
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user