aboutsummaryrefslogtreecommitdiff
path: root/action_plugins/init.py
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--action_plugins/borg_init.py (renamed from action_plugins/init.py)8
1 files changed, 5 insertions, 3 deletions
diff --git a/action_plugins/init.py b/action_plugins/borg_init.py
index a37b109..1775271 100644
--- a/action_plugins/init.py
+++ b/action_plugins/borg_init.py
@@ -9,14 +9,16 @@ class ActionModule(ActionBase):
result['changed'] = False
result['failed'] = False
- is_borg_server = False
+ is_server = False
for hostname, hostvars in task_vars['hostvars'].items() :
if 'borg_server' in hostvars.keys() and hostvars['borg_server'] == task_vars['ansible_host']:
- is_borg_server = True
+ is_server = True
result['ansible_facts'] = {
- 'is_borg_server': is_borg_server,
+ 'borg': {
+ 'is_server': is_server,
+ }
}
return result