]> git.phdru.name Git - ansible.git/blob - playbooks/debian/roles/add-apache-vhost/tasks/main.yml
2f0e03a9209a0e0f3f549d19ee8fe91c15be81fb
[ansible.git] / playbooks / debian / roles / add-apache-vhost / tasks / main.yml
1 - name: Check vhost
2   stat:
3     path: "/etc/apache2/sites-enabled/{{ virtual_host }}.conf"
4   register: vhost_conf
5   changed_when: not vhost_conf.stat.exists
6
7 - name: Add vhost
8   import_tasks: add-vhost.yml
9   when: not vhost_conf.stat.exists
10
11 - name: Run dehydrated for the vhost
12   import_tasks: dehydrated.yml
13   when: not vhost_conf.stat.exists