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

13 lines
462 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 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-01-23 22:03:53 +00:00
- name: Restart '{{ 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