- name: virtualhosts | remove default sites file: > path=/etc/apache2/sites-enabled/{{ item }} state=absent with_items: - 'default' - 'default.conf' - '000-default' - '000-default.conf' - 'default-ssl' - 'default-ssl.conf' notify: - apache-restart