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"
|
|
|
|
|
2017-05-19 22:31:32 +02:00
|
|
|
- include: certbot.yml
|
2016-12-16 16:18:19 +01:00
|
|
|
|
2017-05-19 22:31:32 +02:00
|
|
|
- include: acme.yml
|
2016-12-16 16:18:19 +01:00
|
|
|
|
2017-05-19 22:31:32 +02:00
|
|
|
- include: conf.yml
|
2016-12-16 16:18:19 +01:00
|
|
|
|
2017-05-19 22:31:32 +02:00
|
|
|
- include: scripts.yml
|
2016-12-16 16:18:19 +01:00
|
|
|
|
2017-05-19 22:31:32 +02:00
|
|
|
- include: webserver.yml
|
2016-12-16 16:18:19 +01:00
|
|
|
|
2017-05-19 22:31:32 +02:00
|
|
|
- include: apache.yml
|
2016-12-16 16:18:19 +01:00
|
|
|
when: sta.stat.isreg is defined and sta.stat.isreg
|
|
|
|
|
2017-05-19 22:31:32 +02:00
|
|
|
- include: nginx.yml
|
2016-12-16 16:18:19 +01:00
|
|
|
when: stn.stat.isreg is defined and stn.stat.isreg
|