2016-12-14 15:49:34 +01:00
|
|
|
---
|
2017-03-24 14:06:05 +01:00
|
|
|
|
|
|
|
- name: Fail if distribution is not supported
|
|
|
|
fail:
|
|
|
|
msg: "Error: '{{ ansible_os_family }} {{ ansible_distribution_release }}' is not a supported distribution."
|
|
|
|
when:
|
|
|
|
- ansible_distribution_release != "jessie"
|
|
|
|
- ansible_distribution_release != "stretch"
|
|
|
|
|
2016-12-14 15:49:34 +01:00
|
|
|
- include: tasks/certbot.yml
|
2016-12-16 16:18:19 +01:00
|
|
|
|
2016-12-14 15:49:34 +01:00
|
|
|
- include: tasks/acme.yml
|
2016-12-16 16:18:19 +01:00
|
|
|
|
2016-12-14 15:49:34 +01:00
|
|
|
- include: tasks/conf.yml
|
2016-12-16 16:18:19 +01:00
|
|
|
|
2016-12-14 15:49:34 +01:00
|
|
|
- include: tasks/scripts.yml
|
2016-12-16 16:18:19 +01:00
|
|
|
|
2016-12-14 15:49:34 +01:00
|
|
|
- include: tasks/webserver.yml
|
2016-12-16 16:18:19 +01:00
|
|
|
|
2016-12-14 15:49:34 +01:00
|
|
|
- include: tasks/apache.yml
|
2016-12-16 16:18:19 +01:00
|
|
|
when: sta.stat.isreg is defined and sta.stat.isreg
|
|
|
|
|
2016-12-14 15:49:34 +01:00
|
|
|
- include: tasks/nginx.yml
|
2016-12-16 16:18:19 +01:00
|
|
|
when: stn.stat.isreg is defined and stn.stat.isreg
|