diff options
author | Julien Dessaux | 2021-03-04 13:38:44 +0100 |
---|---|---|
committer | Julien Dessaux | 2021-03-04 13:38:44 +0100 |
commit | 2451b5ced341e37fe004b4f36b040a55a97ce03e (patch) | |
tree | dc334ead4e601de6960b8546ab9819185b09dee2 /action_plugins/init.py | |
parent | Moved borg action plugin into its own role (diff) | |
download | borg-ansible-role-2451b5ced341e37fe004b4f36b040a55a97ce03e.tar.gz borg-ansible-role-2451b5ced341e37fe004b4f36b040a55a97ce03e.tar.bz2 borg-ansible-role-2451b5ced341e37fe004b4f36b040a55a97ce03e.zip |
Fixed stupid ansible python sucks silent name collision
Diffstat (limited to 'action_plugins/init.py')
-rw-r--r-- | action_plugins/init.py | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/action_plugins/init.py b/action_plugins/init.py deleted file mode 100644 index a37b109..0000000 --- a/action_plugins/init.py +++ /dev/null @@ -1,23 +0,0 @@ -from ansible.plugins.action import ActionBase - - -class ActionModule(ActionBase): - def run(self, tmp=None, task_vars=None): - if task_vars is None: - task_vars = dict() - result = super(ActionModule, self).run(tmp, task_vars) - result['changed'] = False - result['failed'] = False - - is_borg_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 - - result['ansible_facts'] = { - 'is_borg_server': is_borg_server, - } - - return result - |