homeserver/roles/mgrote_rsync/tasks/main.yml

19 lines
434 B
YAML
Raw Normal View History

2024-10-28 18:17:23 +01:00
---
2024-10-28 18:24:29 +01:00
- name: Include user tasks
2024-10-28 18:17:23 +01:00
ansible.builtin.include_tasks: user.yml
2024-10-28 19:03:14 +01:00
- name: Ensure packages are present
become: true
ansible.builtin.package:
name:
- rsync
state: present
2024-10-28 18:24:29 +01:00
- name: Include source tasks
2024-10-28 18:17:23 +01:00
ansible.builtin.include_tasks: source.yml
2024-10-28 18:57:35 +01:00
when: "'source' in rsync_host_role"
2024-10-28 18:17:23 +01:00
2024-10-28 18:24:29 +01:00
- name: Include destination tasks
2024-10-28 18:17:23 +01:00
ansible.builtin.include_tasks: destination.yml
2024-10-28 18:57:35 +01:00
when: "'destination' in rsync_host_role"