2015-05-28 11:32:57 +02:00
|
|
|
---
|
|
|
|
- include: nginx.yml
|
2016-09-27 19:33:52 +02:00
|
|
|
- include: nginx-config.yml
|
2016-11-09 14:27:00 +01:00
|
|
|
- include: nginx-virtualhosts.yml
|
|
|
|
when: nginx_use_common_virthost
|
2016-04-22 18:55:20 +02:00
|
|
|
- include: nginx-letsencrypt.yml
|
|
|
|
when: letsencrypt_acme_install is defined and letsencrypt_acme_install
|
2015-05-28 11:32:57 +02:00
|
|
|
- include: pam-ldap.yml
|
2016-07-03 12:19:12 +02:00
|
|
|
|
|
|
|
- name: Ensure that the webserver is running and enabled at boot time
|
|
|
|
service: name=nginx state=started enabled=yes
|
|
|
|
when: nginx_enabled
|
|
|
|
ignore_errors: True
|
|
|
|
tags: nginx
|
|
|
|
|
|
|
|
- name: Ensure that the webserver is stopped and disabled
|
|
|
|
service: name=nginx state=stopped enabled=no
|
|
|
|
when: not nginx_enabled
|
|
|
|
ignore_errors: True
|
|
|
|
tags: nginx
|