Update to 2024-10-16 16:00

This commit is contained in:
Daniel Berteaud
2024-10-16 16:00:23 +02:00
parent db4f5ab690
commit 3d8b941b4c
4 changed files with 14 additions and 8 deletions

View File

@@ -9,11 +9,17 @@
tags: proxy
# Before 1.34.6-3 provided by EPEL, the service was handled by a init script and the service was named ufdb
# And before 1.35.8-2 it was udbGuard, now it's ufdbguard
- name: Check if the systemd unit is installed
stat: path=/lib/systemd/system/ufdbGuard.service
register: squid_ufdb_unit
tags: proxy
- name: Check if the systemd unit is installed
stat: path=/lib/systemd/system/ufdbguard.service
register: squid_ufdbguard_unit
tags: proxy
- name: Identify intercept HTTP ports (if any)
set_fact: squid_intercept_http_ports={{ squid_http_ports | selectattr('port','defined') | selectattr('mode','defined') | selectattr('mode','equalto','intercept') | map(attribute='port') | list }}
tags: firewall,proxy
@@ -215,7 +221,7 @@
tags: proxy
- name: Handle ufdb daemon
service: name={{ squid_ufdb_unit.stat.exists | ternary('ufdbGuard','ufdb') }} state={{ squid_filter_url | ternary('started','stopped') }} enabled={{ squid_filter_url | ternary(True,False) }}
service: name={{ squid_ufdb_unit.stat.exists | ternary('ufdbGuard', squid_ufdbguard_unit.stat.exists | ternary('ufdbguard', 'ufdb')) }} state={{ squid_filter_url | ternary('started','stopped') }} enabled={{ squid_filter_url | ternary(True,False) }}
tags: proxy
- include_tasks: filebeat.yml