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