2021-01-09 17:54:42 +00:00
|
|
|
---
|
|
|
|
- block:
|
|
|
|
- name: installing nginx
|
|
|
|
package:
|
|
|
|
name:
|
|
|
|
- nginx
|
2021-07-23 16:43:35 +00:00
|
|
|
- nginx-mod-stream
|
2021-01-09 17:54:42 +00:00
|
|
|
state: present
|
|
|
|
notify: start nginx
|
|
|
|
register: install_nginx_result
|
|
|
|
tags:
|
|
|
|
- nginx-install
|
2024-06-16 14:39:08 +00:00
|
|
|
|
|
|
|
- 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'
|