1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-02-13 11:42:08 +00:00
iiab/roles/wordpress/tasks/apache.yml

13 lines
464 B
YAML
Raw Normal View History

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
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
- 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