--- - import_tasks: setup_Debian.yml - name: enable modules apache2_module: name: "{{item}}" state: present with_items: - rewrite - ssl - name: default vhost template: src: default-vhost.j2 dest: /etc/apache2/sites-available/000-default.conf notify: reload apache - name: ensure apache is started service: name: apache2 state: started