2 command: "test -L /etc/apache2/sites-enabled/{{ virtual_host }}.conf"
5 changed_when: vhost.rc != 0
11 dest: "/etc/apache2/sites-available/{{ virtual_host }}.conf"
21 command: "a2ensite {{ virtual_host }}"
25 - name: Create directories
28 path: "{{ item }}/{{ virtual_host }}"
33 loop: ['/usr/local/apache2/cgi-bin', '/usr/local/apache2/htdocs',