ansible-role-borgbackup/tasks/main.yml

32 lines
777 B
YAML

---
- name: Install Packages
ansible.builtin.import_tasks: packages.yml
tags: packages
- name: Create SSH key
ansible.builtin.import_tasks: ssh.yml
tags: ssh
- name: Setup borgbase backup
ansible.builtin.import_tasks: borgbase.yml
when: "'borgbase' in borg_providers"
tags: borgbase
- name: Setup Hetzner storagebox backup
ansible.builtin.import_tasks: storagebox.yml
when: "'hetzner' in borg_providers"
tags: storagebox
- name: Setup borg
ansible.builtin.import_tasks: borg.yml
tags: borg
- name: Get installed packages
ansible.builtin.package_facts:
manager: apt
tags: exporter
- name: Setup Prometheus exporter
ansible.builtin.import_tasks: exporter.yml
tags: exporter
when: "'prometheus-node-exporter' in ansible_facts.packages"