--- - name: Include user tasks ansible.builtin.include_tasks: user.yml - name: Include source tasks ansible.builtin.include_tasks: source.yml when: "'source' in rsync_host" - name: Include destination tasks ansible.builtin.include_tasks: destination.yml when: "'destination' in rsync_host "