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
This commit is contained in:
Clark Boylan 2020-06-03 09:51:23 -07:00
parent 1210ef366c
commit 96298bfcc4

View File

@ -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