homeserver/friedhof/mgrote_rsync/tasks/main.yml
Michael Grote 563223e182
All checks were successful
ansible-lint / gitleaks (push) Successful in 57s
ansible-lint / Ansible Lint (push) Successful in 1m19s
replace rsync with freefilesync (#286)
the replacement gets replaced :-D

- old: 7a2ccbabb6

see also:

- ddaa6835b5
- 56e85dfa93

Reviewed-on: #286
Co-authored-by: Michael Grote <michael.grote@posteo.de>
Co-committed-by: Michael Grote <michael.grote@posteo.de>
2025-01-18 19:08:01 +01:00

21 lines
548 B
YAML

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