From 5034285ac2224f70ca8c69ee0217d18b934724ec Mon Sep 17 00:00:00 2001 From: Salt Date: Tue, 11 Feb 2020 14:43:25 -0600 Subject: [PATCH] Change ansiblehost role to rerun every 12 hours instead of 24 This renews certs at about the requested rate Hopefully it doesn't break anything. I'm using LTS instances so it should be fine but you never know --- roles/ansiblehost/tasks/main.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/roles/ansiblehost/tasks/main.yml b/roles/ansiblehost/tasks/main.yml index cc38f31..a68a010 100644 --- a/roles/ansiblehost/tasks/main.yml +++ b/roles/ansiblehost/tasks/main.yml @@ -46,7 +46,8 @@ dest: /opt/ansible-repo - name: Set up pull and run cronjob cron: - hour: "0" + minute: "0" + hour: "*/12" name: ansible-pull job: "cd /opt/ansible-repo && ansible-playbook ec2.yml > /var/log/ansible-pull.log 2>&1" become: true