homeserver/roles/mgrote_rsync/tasks/main.yml
Michael Grote f5554cd73e
Some checks failed
ansible-lint / gitleaks (pull_request) Successful in 3s
ansible-lint / Ansible Lint (pull_request) Failing after 28s
dfgd
2024-10-29 20:52:32 +01:00

21 lines
565 B
YAML

---
- 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
- 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"