File tree Expand file tree Collapse file tree 2 files changed +7
-13
lines changed
disable-swap-selinux/tasks Expand file tree Collapse file tree 2 files changed +7
-13
lines changed Original file line number Diff line number Diff line change 8
8
regexp : ' ^([^#].*?\sswap\s+sw\s+.*)$'
9
9
replace : ' # \1'
10
10
11
- - name : Disable SELinux
12
- shell : |
13
- setenforce 0
14
- sed -i 's/^SELINUX=.*/SELINUX=permissive/g' /etc/selinux/config
11
+ - name : Set SELinux to permissive mode
12
+ ansible.posix.selinux :
13
+ state : permissive
14
+ policy : targeted
Original file line number Diff line number Diff line change 6
6
command : ethtool --offload {{ ansible_default_ipv4['interface'] }} tx-checksumming off
7
7
when : ansible_default_ipv4['interface'] is defined
8
8
9
- - name : Disable SWAP since kubernetes can't work with swap enabled (1/2)
10
- shell : |
11
- swapoff -a
12
-
13
- - name : Disable SWAP in fstab since kubernetes can't work with swap enabled (2/2)
14
- replace :
15
- path : /etc/fstab
16
- regexp : ' ^([^#].*?\sswap\s+sw\s+.*)$'
17
- replace : ' # \1'
9
+ - name : Disable SELinux and disable SWAP in fstab
10
+ include_role :
11
+ name : disable-swap-selinux
18
12
19
13
# PowerVS has default domainname set as .power-iaas.cloud.ibm.com which is not present in the cloud
20
14
- name : Remove domainname from the hostname
You can’t perform that action at this time.
0 commit comments