2023-04-08 19:17:38 +02:00
|
|
|
---
|
2023-04-08 21:07:04 +02:00
|
|
|
- name: Install Packages
|
|
|
|
ansible.builtin.import_tasks: packages.yml
|
|
|
|
tags: packages
|
|
|
|
|
2023-04-08 22:33:17 +02:00
|
|
|
- name: Create SSH key
|
|
|
|
ansible.builtin.import_tasks: ssh.yml
|
|
|
|
tags: ssh
|
2023-04-08 19:17:38 +02:00
|
|
|
|
2023-04-08 21:07:04 +02:00
|
|
|
- name: Setup borgbase backup
|
|
|
|
ansible.builtin.import_tasks: borgbase.yml
|
2023-05-08 11:21:21 +02:00
|
|
|
when: "'borgbase' in borg_providers"
|
2023-04-08 21:07:04 +02:00
|
|
|
tags: borgbase
|
2023-04-08 19:17:38 +02:00
|
|
|
|
2023-05-08 10:36:42 +02:00
|
|
|
- name: Setup Hetzner storagebox backup
|
|
|
|
ansible.builtin.import_tasks: storagebox.yml
|
2023-05-08 11:21:21 +02:00
|
|
|
when: "'hetzner' in borg_providers"
|
2023-05-08 10:36:42 +02:00
|
|
|
tags: storagebox
|
|
|
|
|
2023-04-08 23:08:58 +02:00
|
|
|
- name: Setup borg
|
|
|
|
ansible.builtin.import_tasks: borg.yml
|
|
|
|
tags: borg
|
2023-12-02 09:18:19 +01:00
|
|
|
|
|
|
|
- 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"
|