Skip to content
This repository was archived by the owner on Oct 15, 2020. It is now read-only.

Commit aafa241

Browse files
committed
Add a option to set the rebuild frequency
1 parent ce81128 commit aafa241

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,8 @@ push to openshift, with £NAME replaced by the name given to the role.
4646
# Regular rebuild
4747

4848
The role will rebuild the website on a regular basis, every 6h
49-
by default. This is not yet a option that can be changed.
49+
by default. This can be changed with the parameter `rebuild_interval`, which express
50+
the time between automated rebuild attempts if nothing changed, expressed in hours.
5051

5152
# Debug the build
5253

defaults/main.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,5 @@ builder_username: middleman_builder
44
update_submodules: True
55
watchers: []
66
irc_server: False
7+
# in hours
8+
rebuild_interval: 6

templates/builder.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,7 @@ notification:
1717
# unused for now
1818
email_commiter: False
1919
remote: {{ rsync_url }}
20+
{% if rebuild_interval is defined %}
2021
# in hours
21-
regular_rebuild_interval: 6
22+
regular_rebuild_interval: {{ rebuild_interval }}
23+
{% endif %}

0 commit comments

Comments
 (0)