Add postgresql role
This commit is contained in:
parent
4f97b66c3d
commit
56885d70b6
7 changed files with 152 additions and 4 deletions
playbooks/filter_plugins
|
@ -3,6 +3,7 @@ class FilterModule(object):
|
|||
return {
|
||||
'list_prefix_suffix': self.list_prefix_suffix,
|
||||
'list_prefix_path_suffix': self.list_prefix_path_suffix,
|
||||
'postgresql_restart_required': self.postgresql_restart_required,
|
||||
}
|
||||
|
||||
def list_prefix_suffix(self, values, prefix, suffix):
|
||||
|
@ -17,3 +18,9 @@ class FilterModule(object):
|
|||
for value in values:
|
||||
result.append(f"{prefix}{value}{suffix}")
|
||||
return result
|
||||
|
||||
def postgresql_restart_required(self, results):
|
||||
for result in results:
|
||||
if result.get('restart_required') and result.get('changed'):
|
||||
return True
|
||||
return False
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue