Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ansiblization/rsync
Ansible role for installing scheduled rsync jobs on Debian or Archlinux-based distributions
https://github.com/ansiblization/rsync
ansible ansible-role debian rsync systemd-service systemd-timer systemd-unit
Last synced: 7 days ago
JSON representation
Ansible role for installing scheduled rsync jobs on Debian or Archlinux-based distributions
- Host: GitHub
- URL: https://github.com/ansiblization/rsync
- Owner: ansiblization
- License: apache-2.0
- Created: 2024-06-09T12:48:10.000Z (8 months ago)
- Default Branch: master
- Last Pushed: 2024-11-14T20:32:16.000Z (3 months ago)
- Last Synced: 2024-11-22T18:48:00.749Z (2 months ago)
- Topics: ansible, ansible-role, debian, rsync, systemd-service, systemd-timer, systemd-unit
- Language: Jinja
- Homepage:
- Size: 10.7 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Ansible role for installing scheduled rsync jobs
This role depends on the [ansiblization/syslog](https://github.com/ansiblization/syslog) role for logging capabilities.
The rsync jobs to be scheduled have to be defined as a list named `rsync_jobs`:
```yml
rsync_jobs: [{rsync_vars}, ...]
rsync_vars:
name: "{{ rsync_job.name }}"
from: "{{ rsync_job.from | default(rsync_job.path) }}"
to: "{{ rsync_job.to | default(rsync_job.path) }}"
include: "{{ rsync_job.include | default([]) }}"
exclude: "{{ rsync_job.exclude | default([]) }}"
options: "{{ rsync_job.options | default([]) }}"
schedule: "{{ rsync_job.schedule | default(None) }}"
conflicts: "{{ rsync_job.conflicts | default([]) }}"
remote_source: "{{ rsync_job.remote_source | default(None) }}"
remote_destination: "{{ rsync_job.remote_destination | default(None) }}"
remote_source_user: "{{ rsync_job.remote_source_user | default('root') }}"
remote_destination_user: "{{ rsync_job.remote_destination_user | default('root') }}"
state: "{{ rsync_job.state | default('present') }}"
```