From 69917c65e6f0de1665d63a28d5ee3f27df528f9f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torma=20Krist=C3=B3f?= Date: Wed, 4 May 2022 14:45:34 +0200 Subject: [PATCH] fix certbot of neko --- roles/neko/tasks/main.yaml | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/roles/neko/tasks/main.yaml b/roles/neko/tasks/main.yaml index b176e6d..37955ec 100644 --- a/roles/neko/tasks/main.yaml +++ b/roles/neko/tasks/main.yaml @@ -14,10 +14,10 @@ owner: root group: root -- name: Enable haproxy +- name: Enable and stop haproxy service: name: haproxy - state: started + state: stopped enabled: yes - name: "Install certbot via apt" @@ -29,7 +29,13 @@ - name: Generate certificate for all proxied domains command: - cmd: certbot certonly --non-interactive --agree-tos -m tormakristof@tormakristof.eu --nginx -d neko.tormakristof.eu + cmd: certbot certonly --non-interactive --agree-tos -m tormakristof@tormakristof.eu --standalone -d neko.tormakristof.eu + +- name: Enable and start haproxy + service: + name: haproxy + state: started + enabled: yes - name: Copy certbot cronjob copy: