ansible-role-nginx/tasks/nginx-rh.yml

21 lines
546 B
YAML
Raw Normal View History

2020-06-02 14:52:24 +02:00
---
- block:
- name: Install the nginx web server
yum: pkg=nginx state={{ nginx_package_state }}
- 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