homeserver/roles/mgrote_rsync/tasks/main.yml

22 lines
565 B
YAML
Raw Normal View History

2024-10-28 18:17:23 +01:00
---
2024-10-29 20:52:32 +01:00
- name: Block
when: ("'source' in rsync_host_role") or ("'destination' in rsync_host_role")
block:
- name: Include user tasks
ansible.builtin.include_tasks: user.yml
2024-10-28 18:17:23 +01:00
2024-10-29 20:52:32 +01:00
- name: Ensure packages are present
become: true
ansible.builtin.package:
name:
- rsync
state: present
2024-10-28 19:03:14 +01:00
2024-10-29 20:52:32 +01:00
- name: Include source tasks
ansible.builtin.include_tasks: source.yml
when: "'source' in rsync_host_role"
2024-10-28 18:17:23 +01:00
2024-10-29 20:52:32 +01:00
- name: Include destination tasks
ansible.builtin.include_tasks: destination.yml
when: "'destination' in rsync_host_role"