From 96298bfcc415ba171a934334584a9d3a3ba340d6 Mon Sep 17 00:00:00 2001 From: Clark Boylan Date: Wed, 3 Jun 2020 09:51:23 -0700 Subject: [PATCH] Restart apache on graphite when LE updates certs This was touching a file previously, but we can safely restart apache if the certs update as this happens non concurrently with puppet updates. Do this to ensure the cert is kept up to date. Change-Id: I28168770258c38d13202fad48be3f61ecdc8ec4d --- playbooks/roles/letsencrypt-create-certs/handlers/main.yaml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/playbooks/roles/letsencrypt-create-certs/handlers/main.yaml b/playbooks/roles/letsencrypt-create-certs/handlers/main.yaml index 2c2a79a687..289e72d58a 100644 --- a/playbooks/roles/letsencrypt-create-certs/handlers/main.yaml +++ b/playbooks/roles/letsencrypt-create-certs/handlers/main.yaml @@ -12,9 +12,7 @@ # https://docs.ansible.com/ansible/latest/porting_guides/porting_guide_2.8.html#imports-as-handlers - name: letsencrypt updated graphite01-main - include_tasks: roles/letsencrypt-create-certs/handlers/touch_file.yaml - vars: - touch_file: '/tmp/letsencrypt-graphite01-main.stamp' + include_tasks: roles/letsencrypt-create-certs/handlers/restart_apache.yaml - name: letsencrypt updated tarballs-main include_tasks: roles/letsencrypt-create-certs/handlers/restart_apache.yaml