aboutsummaryrefslogtreecommitdiffstats
path: root/tasks/main.yml
blob: 47c45a737287aefbad464438c3b8027754b6b827 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
---
- name: Validate role configuration
  ansible.builtin.include_tasks: validate.yml

- name: Install dependencies
  ansible.builtin.include_tasks: installation.yml
  when: state == "present"

- name: Run setup on server
  ansible.builtin.include_tasks: server_setup.yml
  when: state == "present"

- name: Run setup on client
  ansible.builtin.include_tasks: client_setup.yml
  when: state == "present"

- name: Remove borg backup configuration
  ansible.builtin.include_tasks: absent.yml
  when: state == "absent"