homeserver/roles/mgrote_rsync/tasks/main.yml

22 lines
548 B
YAML
Raw Normal View History

2024-10-28 18:17:23 +01:00
---
2024-10-29 20:52:32 +01:00
- name: Block
2024-10-29 21:01:47 +01:00
when: rsync_host_role is defined
2024-10-29 20:52:32 +01:00
block:
2024-10-29 21:05:21 +01:00
- name: Include user tasks
ansible.builtin.include_tasks: user.yml
2024-10-28 18:17:23 +01:00
2024-10-29 21:05:21 +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 21:05:21 +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 21:05:21 +01:00
- name: Include destination tasks
ansible.builtin.include_tasks: destination.yml
when: "'destination' in rsync_host_role"