25 lines
537 B
YAML
25 lines
537 B
YAML
---
|
|
|
|
- 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"
|
|
|
|
- include: certbot.yml
|
|
|
|
- include: acme.yml
|
|
|
|
- include: conf.yml
|
|
|
|
- include: scripts.yml
|
|
|
|
- include: webserver.yml
|
|
|
|
- include: apache.yml
|
|
when: sta.stat.isreg is defined and sta.stat.isreg
|
|
|
|
- include: nginx.yml
|
|
when: stn.stat.isreg is defined and stn.stat.isreg
|