2020-06-02 14:52:24 +02:00
|
|
|
---
|
|
|
|
- block:
|
|
|
|
- name: Install the nginx web server
|
|
|
|
yum: pkg=nginx state={{ nginx_package_state }}
|
|
|
|
|
2020-07-31 12:33:22 +02:00
|
|
|
- name: nginx must be able to network connect when used as a proxy
|
|
|
|
seboolean:
|
|
|
|
name: httpd_can_network_connect
|
|
|
|
state: yes
|
|
|
|
persistent: yes
|
|
|
|
when: letsencrypt_acme_install is defined and letsencrypt_acme_install
|
|
|
|
|
2020-08-03 15:16:10 +02:00
|
|
|
- name: Give nginx the ability to set RLIMIT_NOFILE
|
|
|
|
seboolean:
|
|
|
|
name: httpd_setrlimit
|
|
|
|
state: yes
|
|
|
|
persistent: yes
|
|
|
|
|
2020-06-02 14:52:24 +02:00
|
|
|
when: ansible_distribution_file_variety == "RedHat"
|
|
|
|
tags: nginx
|