1
0
Fork 0
This repository has been archived on 2025-03-10. You can view files and clone it, but cannot push or open issues or pull requests.
ansible-role-borg/tasks/common.yml

26 lines
599 B
YAML
Raw Normal View History

2019-07-09 11:45:03 +02:00
---
- 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: Push borg gathering fact on client
copy:
src: borg.fact
dest: /etc/ansible/facts.d/
mode: 0500
owner: root
register: borg_gathering_fact
- name: reload ansible_local
setup: filter=ansible_local
when: borg_gathering_fact.changed
...