From 6ab3f62148e8a0ab29fcf0323c6b309a56e29d7e Mon Sep 17 00:00:00 2001 From: Felix Ableitner Date: Wed, 11 Sep 2019 13:41:07 +0200 Subject: [PATCH] Randomize posting interval, fix ansible warnings (fixes #4) --- ansible.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ansible.yml b/ansible.yml index 2741c6e..17537e9 100644 --- a/ansible.yml +++ b/ansible.yml @@ -26,6 +26,8 @@ path: /pinkored/communistquotes/ pull: yes source: build + force_source: yes + force_tag: yes - name: add all template files template: src=env dest=/pinkored/env @@ -34,4 +36,5 @@ cron: name: "communist-quotes" 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"