Skip to content

Commit d0174b4

Browse files
committed
Fixed typo in orahost/tasks/RedHat-*, so it actually matches ansible_os_family
1 parent def1326 commit d0174b4

File tree

2 files changed

+34
-0
lines changed

2 files changed

+34
-0
lines changed

roles/orahost/tasks/RedHat-6.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
---
2+
3+
- name: Count number of kernel lines that needs to be changed (numa=off transparent_hugepage=never)
4+
shell: cat /etc/grub.conf | grep title |wc -l
5+
register: count
6+
tags: thpnuma
7+
8+
- name: Disable Transparent Hugepages (in grub.conf)
9+
lineinfile: dest=/etc/grub.conf
10+
backup=True
11+
backrefs=True
12+
state=present
13+
regexp='(^\s+kernel(\s+(?!transparent_hugepage=never)[\w=/\-\.]+)*)\s*$'
14+
line='\1 transparent_hugepage=never'
15+
with_sequence: start=0 end={{ count.stdout }}
16+
tags: thpnuma
17+
18+
- name: Disable Numa (in grub.conf)
19+
lineinfile: dest=/etc/grub.conf
20+
backup=True
21+
backrefs=True
22+
state=present
23+
regexp='(^\s+kernel(\s+(?!numa=off)[\w=/\-\.]+)*)\s*$'
24+
line='\1 numa=off'
25+
with_sequence: start=0 end={{ count.stdout }}
26+
tags: thpnuma
27+
when: disable_numa_boot
28+
29+
- name: Disable Transparent Hugepages (runtime)
30+
shell: if test -f /sys/kernel/mm/transparent_hugepage/enabled; then echo never > /sys/kernel/mm/transparent_hugepage/enabled; fi;
31+
tags: tphnuma

roles/orahost/tasks/RedHat-7.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
- name: Disable Transparent Hugepages (runtime)
2+
shell: if test -f /sys/kernel/mm/transparent_hugepage/enabled; then echo never > /sys/kernel/mm/transparent_hugepage/enabled; fi;
3+
tags: tphnuma

0 commit comments

Comments
 (0)