evoacme: better syntax

This commit is contained in:
Jérémy Lecour 2016-12-16 16:18:19 +01:00 committed by Jérémy Lecour
parent 3c20c3faf3
commit d9d2535be0
2 changed files with 14 additions and 5 deletions

View file

@ -1,12 +1,19 @@
---
- include: tasks/certbot.yml
- include: tasks/acme.yml
- include: tasks/conf.yml
- include: tasks/scripts.yml
- include: tasks/webserver.yml
- include: tasks/apache.yml
when: sta.stat.isreg is defined and sta.stat.isreg == True
when: sta.stat.isreg is defined and sta.stat.isreg
- include: tasks/nginx.yml
when: stn.stat.isreg is defined and stn.stat.isreg == True
when: stn.stat.isreg is defined and stn.stat.isreg
- include: tasks/dhparam.yml
when: stn.stat.isreg is defined and stn.stat.isreg == True
when: stn.stat.isreg is defined and stn.stat.isreg

View file

@ -1,8 +1,10 @@
---
- name: Determine Nginx presence
stat: path=/etc/nginx/nginx.conf
stat:
path: /etc/nginx/nginx.conf
register: stn
- name: Determine Apache presence
stat: path=/etc/apache2/apache2.conf
stat:
path: /etc/apache2/apache2.conf
register: sta