src.nth.io/

summaryrefslogtreecommitdiff
path: root/roles/nginx/tasks/main.yaml
diff options
context:
space:
mode:
authorLuke Hoersten <[email protected]>2019-12-08 14:56:04 -0600
committerLuke Hoersten <[email protected]>2019-12-08 14:56:04 -0600
commit0a2ef74497a42a11244c468cf9b2c8099857ecb0 (patch)
treec778e045310ae720a5ff2c97432ddab77d831cf6 /roles/nginx/tasks/main.yaml
parent94e7b91298aa0c3c981b7dd06adbff85bf420a15 (diff)
Added certbot and cloudflare support.
Diffstat (limited to 'roles/nginx/tasks/main.yaml')
-rw-r--r--roles/nginx/tasks/main.yaml4
1 files changed, 2 insertions, 2 deletions
diff --git a/roles/nginx/tasks/main.yaml b/roles/nginx/tasks/main.yaml
index e255410..74c6d7e 100644
--- a/roles/nginx/tasks/main.yaml
+++ b/roles/nginx/tasks/main.yaml
@@ -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