mirror of
https://github.com/nikdoof/ansible-borgmatic.git
synced 2025-12-11 09:52:18 +00:00
19 lines
542 B
YAML
19 lines
542 B
YAML
---
|
|
- name: Borgmatic - Get OS specific vars
|
|
include_vars: "{{ item }}"
|
|
with_first_found:
|
|
- "os/{{ ansible_os_family }}/{{ ansible_distribution_major_version }}.yaml"
|
|
- "os/{{ ansible_os_family }}.yaml"
|
|
|
|
- name: Borgmatic - Install and configure
|
|
when: borgmatic_enabled | default(true)
|
|
block:
|
|
- include_tasks: install.yaml
|
|
- include_tasks: config.yaml
|
|
- include_tasks: init.yaml
|
|
|
|
- name: Borgmatic - Uninstall and clean up
|
|
when: not borgmatic_enabled | default(true)
|
|
block:
|
|
- include_tasks: uninstall.yaml
|