homeserver/roles/mgrote_rsync/tasks/main.yml

22 lines
548 B
YAML
Raw Normal View History

---
- name: Block
when: rsync_host_role is defined
block:
- name: Include user tasks
ansible.builtin.include_tasks: user.yml
- name: Ensure packages are present
become: true
ansible.builtin.package:
name:
- rsync
state: present
- name: Include source tasks
ansible.builtin.include_tasks: source.yml
when: "'source' in rsync_host_role"
- name: Include destination tasks
ansible.builtin.include_tasks: destination.yml
when: "'destination' in rsync_host_role"