fix selinux for nginx

This commit is contained in:
ace 2024-06-16 17:39:08 +03:00
parent 4bdaff7cca
commit 5a980d28ad
Signed by: ace
GPG Key ID: 2C08973DD37A76FD

View File

@ -10,3 +10,17 @@
register: install_nginx_result register: install_nginx_result
tags: tags:
- nginx-install - nginx-install
- name: set httpd_can_network_connect flag on and keep it persistent across reboots
ansible.posix.seboolean:
name: httpd_can_network_connect
state: yes
persistent: yes
when: ansible_selinux is defined and ansible_selinux != False and ansible_selinux.status == 'enabled'
- name: set httpd_can_network_relay flag on and keep it persistent across reboots
ansible.posix.seboolean:
name: httpd_can_network_relay
state: yes
persistent: yes
when: ansible_selinux is defined and ansible_selinux != False and ansible_selinux.status == 'enabled'