Skip to content
Snippets Groups Projects
Commit f43458c4 authored by jurgenhaas's avatar jurgenhaas
Browse files

ansible-inventories/arocom#15 Make crontab definitions configurable and allow to turn them off

parent c12a9b1a
No related branches found
No related tags found
No related merge requests found
......@@ -5,3 +5,11 @@ svn_groups: []
svn_repositories: []
svnserver_master: false
svnserver_slave: false
svnserver_cron_sync:
active: true
month: '*'
day: '*'
weekday: '*'
hour: '5,17'
minute: '0'
......@@ -164,11 +164,13 @@
when: svnadmin
- name: 'Subversion | Install cron job to sync slave with master'
cron: name='Sync SVN data with {{svnserver_master}}'
month='*'
day='*'
hour='5,17'
minute='0'
job='rsync -av --delete --log-file=/tmp/svnsync.log {{svnserver_master}}:/var/svn/ /var/svn >/dev/null 2>&1'
user='sshsvn'
when: svnserver_slave
cron:
name='Sync SVN data with {{svnserver_master}}'
month='{{ svnserver_cron_sync.month }}'
day='{{ svnserver_cron_sync.day }}'
weekday='{{ svnserver_cron_sync.weekday }}'
hour='{{ svnserver_cron_sync.hour }}'
minute='{{ svnserver_cron_sync.minute }}'
job='rsync -av --delete --log-file=/tmp/svnsync.log {{svnserver_master}}:/var/svn/ /var/svn >/dev/null 2>&1'
user='sshsvn'
when: svnserver_slave and svnserver_cron_sync.active
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment