--- - name: Enable userdir shell: /usr/sbin/a2mod userdir notify: Reload Apache - name: Set up userdir virtualhost template: src: "files/userdir.conf.j2" dest: "/etc/apache2/mods-enabled/userdir.conf" notify: Reload Apache