Also maybe https should use a directory that actually exists
Holy fuck
This commit is contained in:
parent
092e9ae470
commit
e5a5f5efcd
@ -46,9 +46,9 @@
|
|||||||
- name: Create or renew certificate
|
- name: Create or renew certificate
|
||||||
block:
|
block:
|
||||||
- name: Back up website config
|
- 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:
|
args:
|
||||||
creates: "/etc/apache2/sites-disabled/{{ website_url }}.conf"
|
creates: "/etc/apache2/sites-available/{{ website_url }}.conf"
|
||||||
- name: Create temporary config
|
- name: Create temporary config
|
||||||
template:
|
template:
|
||||||
src: apache2-vhost.conf
|
src: apache2-vhost.conf
|
||||||
@ -86,7 +86,7 @@
|
|||||||
path: "/etc/apache2/sites-enabled/{{ website_url }}.conf"
|
path: "/etc/apache2/sites-enabled/{{ website_url }}.conf"
|
||||||
state: absent
|
state: absent
|
||||||
- name: Restore original config
|
- 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:
|
args:
|
||||||
creates: "/etc/apache2/sites-enabled/{{ website_url }}.conf"
|
creates: "/etc/apache2/sites-enabled/{{ website_url }}.conf"
|
||||||
- name: Reload Apache
|
- name: Reload Apache
|
||||||
|
Loading…
Reference in New Issue
Block a user