mirror of
https://git.lapiole.org/dani/ansible-roles.git
synced 2025-08-03 23:26:58 +02:00
Update to 2024-10-16 16:00
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user