Add autorestic.all file and move two services
This commit is contained in:
parent
aa9c76a622
commit
c28a195f49
4 changed files with 37 additions and 16 deletions
playbooks/filter_plugins
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue