From 0a2ef74497a42a11244c468cf9b2c8099857ecb0 Mon Sep 17 00:00:00 2001 From: Luke Hoersten Date: Sun, 8 Dec 2019 14:56:04 -0600 Subject: Added certbot and cloudflare support. --- roles/nginx/tasks/main.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'roles/nginx/tasks') 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 -- cgit v1.2.3