ceph / chacra

A binary/file REST API to aid in multi-distro|arch|release management
9 stars 18 forks source link

ansible: use systemctl not service, for reloading nginx #236

Closed alfredodeza closed 7 years ago

alfredodeza commented 7 years ago

I believe this might have to do with nginx not being reloaded by the certbot in cron, where service lives in /usr/sbin/ and might not be available in $PATH when running in cron. Regardless, service is not correct anymore (even though it works)

djgalloway commented 7 years ago

Turns out the post-hook wasn't getting called because the actual cronjob never renewed the cert successfully. /etc/cron.d/certbot was hijacking the renewal and isn't configured to run the post-hook we have specified.

Using systemctl for this is better anyway so still merging.