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"