- name: Enable internetarchive.conf via Apache (for short URL http://box/archive eventually?) if internetarchive_enabled command: a2ensite internetarchive.conf when: internetarchive_enabled - 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/.yml state: restarted