roles/nginx/tasks/main.yaml
changeset 82 a3e1a9b18f6d
parent 75 d8c87a41cc6d
child 92 d4924111ce28
--- a/roles/nginx/tasks/main.yaml	Tue Nov 26 19:44:11 2019 -0600
+++ b/roles/nginx/tasks/main.yaml	Sun Dec 08 14:56:04 2019 -0600
@@ -13,13 +13,13 @@
   become: yes
   apt: name="python-certbot-nginx"
   notify: restart nginx
-  when: nginx_enable_ssl
+  when: nginx_enable_certbot
 
 - name: install certbot in nginx
   become: yes
   command: "certbot certonly --nginx -n --agree-tos -d {{nginx_server_name}} -m {{nginx_admin_email}}"
   notify: restart nginx
-  when: nginx_enable_ssl
+  when: nginx_enable_certbot
 
 - name: disable default site
   become: yes