forked from evolix/ansible-roles
evoacme: better syntax
This commit is contained in:
parent
3c20c3faf3
commit
d9d2535be0
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue