mirror of
https://github.com/iiab/iiab.git
synced 2025-02-13 19:52:06 +00:00
13 lines
545 B
YAML
13 lines
545 B
YAML
|
- name: Enable internetarchive.conf via Apache (for short URL http://box/archive eventually?) if internetarchive_enabled
|
||
|
command: a2ensite internetarchive.conf
|
||
|
when: internetarchive_enabled | bool
|
||
|
|
||
|
- name: Disable internetarchive.conf via Apache, if not internetarchive_enabled
|
||
|
command: a2dissite internetarchive.conf
|
||
|
when: not internetarchive_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
|