]> git.phdru.name Git - ansible.git/blob - playbooks/debian/roles/add_apache_vhost/tasks/main.yml
Refactor(add_apache_vhost): Split `tasks/main`
[ansible.git] / playbooks / debian / roles / add_apache_vhost / tasks / main.yml
1 - name: Check vhost
2   command: "test -L /etc/apache2/sites-enabled/{{ virtual_host }}.conf"
3   failed_when: false
4   register: vhost
5   changed_when: vhost.rc != 0
6
7 - name: Add vhost
8   import_tasks: add_vhost.yml
9   when: vhost.rc != 0
10
11   when: vhost.rc != 0