---
# tasklist for setting up a rdiff backup server.
- name: install rdiff-backup
  yum: pkg={{ item }} state=present
  with_items:
  - rdiff-backup
  - git
  - ansible
  tags:
  - packages

- name: setup rdiff backup script
  copy: src="{{ files }}/rdiff-backup/run-rdiff-backups" dest=/usr/local/bin/run-rdiff-backups mode=755
  tags:
  - config

- name: setup rdiff backup cron
  copy: src="{{ files }}/rdiff-backup/run-rdiff-backups.cron" dest=/etc/cron.d/run-rdiff-backups
  tags:
  - config
