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:
|
||||
daemon_reload: true
|
||||
|
||||
- name: initialize squid cache directories
|
||||
command:
|
||||
/usr/sbin/squid -N -z -F -f /etc/squid/squid.conf
|
||||
|
||||
- name: reload squid
|
||||
service:
|
||||
name=squid
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
state: directory
|
||||
loop: '{{ squid_cache_dir|d([]) }}'
|
||||
notify:
|
||||
- initialize squid cache directories
|
||||
- restart squid
|
||||
|
||||
- name: ensure squid is configured
|
||||
template:
|
||||
|
@ -26,7 +26,6 @@
|
|||
group=squid
|
||||
setype=squid_conf_t
|
||||
notify:
|
||||
- initialize squid cache directories
|
||||
- reload squid
|
||||
|
||||
- name: ensure squid systemd unit drop-in directory exists
|
||||
|
|
Loading…
Reference in New Issue