From e5a5f5efcdde03ee0f10977fccf28dc2b151e37a Mon Sep 17 00:00:00 2001 From: Salt Date: Thu, 20 Feb 2020 04:32:30 -0600 Subject: [PATCH] Also maybe https should use a directory that actually exists Holy fuck --- roles/https/tasks/main.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/roles/https/tasks/main.yml b/roles/https/tasks/main.yml index bdf13bc..8fa5c7d 100644 --- a/roles/https/tasks/main.yml +++ b/roles/https/tasks/main.yml @@ -46,9 +46,9 @@ - name: Create or renew certificate block: - name: Back up website config - command: "mv /etc/apache2/sites-enabled/{{ website_url }}.conf /etc/apache2/sites-disabled/{{ website_url }}.conf" + command: "mv /etc/apache2/sites-enabled/{{ website_url }}.conf /etc/apache2/sites-available/{{ website_url }}.conf" args: - creates: "/etc/apache2/sites-disabled/{{ website_url }}.conf" + creates: "/etc/apache2/sites-available/{{ website_url }}.conf" - name: Create temporary config template: src: apache2-vhost.conf @@ -86,7 +86,7 @@ path: "/etc/apache2/sites-enabled/{{ website_url }}.conf" state: absent - name: Restore original config - command: "/usr/bin/mv /etc/apache2/sites-disabled/{{ website_url }}.conf /etc/apache2/sites-enabled/{{ website_url }}.conf" + command: "/usr/bin/mv /etc/apache2/sites-available/{{ website_url }}.conf /etc/apache2/sites-enabled/{{ website_url }}.conf" args: creates: "/etc/apache2/sites-enabled/{{ website_url }}.conf" - name: Reload Apache