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

13 lines
403 B
YAML
Raw Normal View History

- name: Enable http://box/nodered via Apache
command: a2ensite nodered.conf
when: nodered_enabled | bool
- name: Disable http://box/nodered via Apache
command: a2dissite nodered.conf
when: not nodered_enabled
- name: (Re)Start '{{ apache_service }}' systemd service
systemd:
name: "{{ apache_service }}" # apache2 or httpd, as set in /opt/iiab/iiab/vars/<OS>.yml
state: restarted