Add autorestic.all file and move two services

This commit is contained in:
Tobias Reisinger 2024-10-08 00:54:09 +02:00
parent aa9c76a622
commit c28a195f49
Signed by: serguzim
GPG key ID: 13AD60C237A28DFE
4 changed files with 37 additions and 16 deletions
playbooks/filter_plugins

View file

@ -8,7 +8,8 @@ class FilterModule(object):
def my_service_attributes(self, services, host, attribute="name"):
result = []
for service in services:
if service["host"] != host:
# only compare the host if it is set
if host and service["host"] != host:
continue
attribute_value = service.get(attribute)