Skip to content

Commit b985bb1

Browse files
committed
More SELinux
1 parent d7e8321 commit b985bb1

File tree

4 files changed

+19
-5
lines changed

4 files changed

+19
-5
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,3 +96,8 @@
9696
## v1.3.2
9797

9898
- Disable SELinux when Docker is used
99+
100+
## v1.3.3
101+
102+
- Correct var
103+
- More SELinux config

tasks/CentOS.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,14 @@
22
# File: tasks/CentOS.yml - CentOS tasks for nomad
33

44
# Supposedly SELinux disrupts LXC (shrug)
5+
6+
- name: Stop SELinux enforcing
7+
shell: "setenforce 0"
8+
when: nomad_docker_enable == "true"
9+
510
- name: Disable SELinux
6-
lineinfile: dest=/etc/selinux/config regexp='^SELINUX=enforcing' line='SELINUX=disabled'
7-
when: nomad_enable_docker == "true"
11+
replace: dest=/etc/selinux/config regexp='^SELINUX=enforcing' replace='SELINUX=disabled'
12+
when: nomad_docker_enable == "true"
813

914
- name: OS Packages
1015
yum: "name={{ item }} state=present"

tasks/RedHat.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
11
---
22
# File: tasks/Red Hat.yml - Red Hat tasks for nomad
33

4+
- name: Stop SELinux enforcing
5+
shell: "setenforce 0"
6+
when: nomad_docker_enable == "true"
7+
48
# Supposedly SELinux disrupts LXC (shrug)
59
- name: Disable SELinux
6-
lineinfile: dest=/etc/selinux/config regexp='^SELINUX=enforcing' line='SELINUX=disabled'
7-
when: nomad_enable_docker == "true"
10+
replace: dest=/etc/selinux/config regexp='^SELINUX=enforcing' replace='SELINUX=disabled'
11+
when: nomad_docker_enable == "true"
812

913
- name: OS Packages
1014
yum: "name={{ item }} state=present"

version.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v1.3.2
1+
v1.3.3

0 commit comments

Comments
 (0)