Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
svnserver
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Service Desk
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Ansible
Roles
svnserver
Commits
f43458c4
Commit
f43458c4
authored
9 years ago
by
jurgenhaas
Browse files
Options
Downloads
Patches
Plain Diff
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
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
defaults/main.yml
+8
-0
8 additions, 0 deletions
defaults/main.yml
tasks/main.yml
+10
-8
10 additions, 8 deletions
tasks/main.yml
with
18 additions
and
8 deletions
defaults/main.yml
+
8
−
0
View file @
f43458c4
...
...
@@ -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'
This diff is collapsed.
Click to expand it.
tasks/main.yml
+
10
−
8
View file @
f43458c4
...
...
@@ -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
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment