r/squid: Let squid initialize cache dirs
The `squid.service` systemd unit now correctly initializes the configured cache directories, so we do not need to do it explicitly before starting the server.frigate-exporter
parent
f54858ee5e
commit
74e4a4d898
|
@ -2,10 +2,6 @@
|
||||||
systemd:
|
systemd:
|
||||||
daemon_reload: true
|
daemon_reload: true
|
||||||
|
|
||||||
- name: initialize squid cache directories
|
|
||||||
command:
|
|
||||||
/usr/sbin/squid -N -z -F -f /etc/squid/squid.conf
|
|
||||||
|
|
||||||
- name: reload squid
|
- name: reload squid
|
||||||
service:
|
service:
|
||||||
name=squid
|
name=squid
|
||||||
|
|
|
@ -15,7 +15,7 @@
|
||||||
state: directory
|
state: directory
|
||||||
loop: '{{ squid_cache_dir|d([]) }}'
|
loop: '{{ squid_cache_dir|d([]) }}'
|
||||||
notify:
|
notify:
|
||||||
- initialize squid cache directories
|
- restart squid
|
||||||
|
|
||||||
- name: ensure squid is configured
|
- name: ensure squid is configured
|
||||||
template:
|
template:
|
||||||
|
@ -26,7 +26,6 @@
|
||||||
group=squid
|
group=squid
|
||||||
setype=squid_conf_t
|
setype=squid_conf_t
|
||||||
notify:
|
notify:
|
||||||
- initialize squid cache directories
|
|
||||||
- reload squid
|
- reload squid
|
||||||
|
|
||||||
- name: ensure squid systemd unit drop-in directory exists
|
- name: ensure squid systemd unit drop-in directory exists
|
||||||
|
|
Loading…
Reference in New Issue