Skip to content

Ansible role for installing scheduled rsync jobs on Debian or Archlinux-based distributions

License

Notifications You must be signed in to change notification settings

ansiblization/rsync

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ansible role for installing scheduled rsync jobs

This role depends on the ansiblization/syslog role for logging capabilities.

The rsync jobs to be scheduled have to be defined as a list named rsync_jobs:

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') }}"

About

Ansible role for installing scheduled rsync jobs on Debian or Archlinux-based distributions

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages