- name: Enable http://box/awstats and/or http://box/awstats/awstats.pl via Apache command: a2ensite awstats.conf when: awstats_enabled - name: Disable http://box/awstats and/or http://box/awstats/awstats.pl via Apache command: a2dissite awstats.conf when: not awstats_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