2020-01-23 21:25:59 +00:00
|
|
|
- name: Enable http://box{{ wp_url }} via Apache # http://box/wordpress
|
2020-01-23 20:23:36 +00:00
|
|
|
command: a2ensite wordpress.conf
|
2020-10-16 20:46:19 +00:00
|
|
|
when: wordpress_enabled
|
2020-01-23 20:23:36 +00:00
|
|
|
|
2020-01-23 21:25:59 +00:00
|
|
|
- name: Disable http://box{{ wp_url }} via Apache # http://box/wordpress
|
2020-01-23 20:23:36 +00:00
|
|
|
command: a2dissite wordpress.conf
|
|
|
|
when: not wordpress_enabled
|
|
|
|
|
2020-02-04 20:03:59 +00:00
|
|
|
- name: (Re)Start '{{ apache_service }}' systemd service
|
2020-01-23 20:23:36 +00:00
|
|
|
systemd:
|
|
|
|
name: "{{ apache_service }}" # apache2 or httpd, as set in /opt/iiab/iiab/vars/<OS>.yml
|
|
|
|
state: restarted
|