Rsync for collectd
[ansible.git] / collectd-rsync.py
1 ---
2 - hosts: princeton-vicci
3   user: root
4
5   tasks:
6         - name: disable lsyncd
7       service: name=lsyncd state=stopped enabled=no
8
9     - name: rsync collectd data
10           cron: name="run rrdagg" minute=*/5 job="rsync -e \"/usr/bin/ssh -i /etc/bibmon -o StrictHostKeyChecking=no\" -r -v /usr/var/lib/collectd/rrd/ root@sabertooth.cs.princeton.edu:/usr/var/lib/collectd/rrd/ 2>&1 >> /var/log/collectd-rsync.log"