Skip to content

Commit 684c4eb

Browse files
committed
respect selinux setting
1 parent 99b05b2 commit 684c4eb

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

tasks/prerequisites/setup-centos.yml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,6 @@
44
name: ca-certificates, epel-release
55
state: present
66

7-
- name: "(Install: CentOS) Disable SELinux"
8-
selinux:
9-
state: permissive
10-
policy: targeted
11-
127
- name: "(Install: CentOS) Setup SELinux"
138
import_tasks: setup-selinux.yml
149
when: nginx_selinux

tasks/prerequisites/setup-selinux.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@
44
name: policycoreutils-python, setools
55
state: present
66

7+
- name: "(Install: SELinux) Permissive SELinux"
8+
selinux:
9+
state: permissive
10+
policy: targeted
11+
when: nginx_selinux
12+
713
- name: "(Install: SELinux: Booleans) Allow HTTP network connection"
814
seboolean:
915
name: httpd_can_network_connect

0 commit comments

Comments
 (0)