25 lines
579 B
YAML
25 lines
579 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: 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
|
|
|
|
- include: tasks/nginx.yml
|
|
when: stn.stat.isreg is defined and stn.stat.isreg
|