diff options
Diffstat (limited to 'roles/nginx/tasks')
| -rw-r--r-- | roles/nginx/tasks/main.yaml | 4 |
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 |
