- name: Enable http://box{{ nextcloud_url }} via Apache    # http://box/nextcloud
  command: a2ensite nextcloud.conf
  when: nextcloud_enabled

- name: Disable http://box{{ nextcloud_url }} via Apache    # http://box/nextcloud
  command: a2dissite nextcloud.conf
  when: not nextcloud_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
