diff options
Diffstat (limited to '')
-rw-r--r-- | tasks/common.yml | 10 | ||||
-rw-r--r-- | tasks/main.yml | 4 |
2 files changed, 3 insertions, 11 deletions
diff --git a/tasks/common.yml b/tasks/common.yml index 057cd25..6e8ed55 100644 --- a/tasks/common.yml +++ b/tasks/common.yml @@ -1,15 +1,7 @@ --- -- name: set distro-specific server variables - include_vars: '{{ ansible_os_family }}.yml' - -- name: Check if borg is supported on distro - fail: - msg: "borg tasks are not supported on this operating system yet." - when: borg_packages is not defined - - name: Ensure borg is installed package: - name: "{{ borg_packages }}" + name: "{{ borg.package_name }}" - name: Push borg gathering fact on client copy: diff --git a/tasks/main.yml b/tasks/main.yml index 3433cb8..daa0836 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -2,10 +2,10 @@ - action: borg_init - import_tasks: common.yml - when: borg.is_server or borg_server is defined + when: borg.server.clients != [] or borg_server is defined - import_tasks: server.yml - when: borg.is_server + when: borg.server.clients != [] - import_tasks: client.yml when: borg_server is defined |