From c8fcb59dafa0b1a2351be7f47324ddb672cf2cf8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christer=20War=C3=A9n?= Date: Sun, 5 May 2024 19:34:18 +0300 Subject: [PATCH] Update --- tasks/installer.yml | 22 +++++++++++++++------- 1 file changed, 15 insertions(+), 7 deletions(-) diff --git a/tasks/installer.yml b/tasks/installer.yml index 8a1e8b0..805717f 100644 --- a/tasks/installer.yml +++ b/tasks/installer.yml @@ -94,6 +94,21 @@ regexp: "^root" line: "root:100000:65536" +- name: "Installer - Certbot - Create Folder" + file: + path: "{{ path }}" + state: directory + vars: + paths: + - /root/certs + - /etc/letsencrypt/renewal-hooks/pre + loop: "{{ paths }}" + loop_control: + label: "{{ path }}" + loop_var: "path" + tags: + - certbot + - name: "Installer - Certbot - Python Library" pip: name: certbot @@ -119,13 +134,6 @@ tags: - certbot -- name: "Installer - Certbot - Create Folder" - file: - path: "/etc/letsencrypt/renewal-hooks/pre" - state: directory - tags: - - certbot - - name: "Installer - Certbot - Auth Hook" copy: src: "../files/certbot/nginx.sh"