Randomize posting interval, fix ansible warnings (fixes #4)
This commit is contained in:
parent
06e86124fa
commit
6ab3f62148
1 changed files with 4 additions and 1 deletions
|
@ -26,6 +26,8 @@
|
||||||
path: /pinkored/communistquotes/
|
path: /pinkored/communistquotes/
|
||||||
pull: yes
|
pull: yes
|
||||||
source: build
|
source: build
|
||||||
|
force_source: yes
|
||||||
|
force_tag: yes
|
||||||
|
|
||||||
- name: add all template files
|
- name: add all template files
|
||||||
template: src=env dest=/pinkored/env
|
template: src=env dest=/pinkored/env
|
||||||
|
@ -34,4 +36,5 @@
|
||||||
cron:
|
cron:
|
||||||
name: "communist-quotes"
|
name: "communist-quotes"
|
||||||
hour: "*/3"
|
hour: "*/3"
|
||||||
job: "docker run -it --rm --name communistquotes --env-file /pinkored/env communistquotes >> /var/log/communistquotes.log 2>&1"
|
minute: "0"
|
||||||
|
job: "perl -le 'sleep rand 10800' && docker run --rm --name communistquotes --env-file /pinkored/env communistquotes >> /var/log/communistquotes.log 2>&1"
|
||||||
|
|
Loading…
Reference in a new issue