jcalazan / ansible-django-stack

Ansible Playbook for setting up a Django app with Nginx, Gunicorn, PostgreSQL, Celery, RabbitMQ, Supervisor, Virtualenv, and Memcached. A Vagrantfile for provisioning a VirtualBox virtual machine is included as well.
MIT License
1.37k stars 392 forks source link

SSL certificates not updating #150

Open YPCrumble opened 4 years ago

YPCrumble commented 4 years ago

I'm getting an intermittent error which is that my SSL certificates are failing to update. I'm pretty sure this is because of using unattended-upgrades which adds security patches to certbot, but we do not currently reboot the server when required. This is causing certbot to fail because the new binary can't run without the reboot.

My suggestion is to add the automatic reboot option when unattended-upgrades adds a security patch that requires a reboot to be in effect. Though this might cause downtime, it also ensures that the server is patched as soon as any security patch is released.

Related to #118

DmytroLitvinov commented 4 years ago

Also, I guess this repo will support Ubuntu 20.04 in the future and certbot-auto will be deprecated. As a recommendation, we should migrate to certbot