]> git.phdru.name Git - ansible.git/blob - playbooks/debian/roles/add-apache-vhost/tasks/main.yml
Feat: Use module `stat` instead of command `test`
[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
6 - name: Add vhost
7   import_tasks: add-vhost.yml
8   when: not vhost_conf.stats.exists
9
10 - name: Run dehydrated for the vhost
11   import_tasks: dehydrated.yml
12   when: not vhost_conf.stats.exists