https://github.com/savoirfairelinux/ansible-sync-cron
Provisions crontab entries allowing to rsync folders.
https://github.com/savoirfairelinux/ansible-sync-cron
Last synced: 4 months ago
JSON representation
Provisions crontab entries allowing to rsync folders.
- Host: GitHub
- URL: https://github.com/savoirfairelinux/ansible-sync-cron
- Owner: savoirfairelinux
- Created: 2017-07-24T00:12:01.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2017-07-24T00:12:19.000Z (almost 8 years ago)
- Last Synced: 2024-12-26T18:23:05.304Z (6 months ago)
- Size: 1.95 KB
- Stars: 2
- Watchers: 6
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ansible-sync-cron
*Provisions crontab entries allowing to rsync folders, SFL style.*
## Requirements
* Ansible 2.0+
* Debian Jessie on the target system
* A provisioning that runs [ansible-common][ansible-common] before this.## Usage
You call this role as with any other roles. See [vars file](defaults/main.yml) for customisation
options.Here's an example usage for a local development environment:
```yaml
---
- name: Install a cronjob allowing to synchronize backups
hosts: sync-cron-testroles:
- role: sync_cron
sync_cron_username: "user"
sync_cron_src_path: "[email protected]:*"
sync_cron_dest_url: "/backups/test"
sync_cron_freq:
name: "backup cron for test"
hour: 3
minute: 10```
[ansible-common]: https://gitlab.savoirfairelinux.com/devops/ansible-common