File tree Expand file tree Collapse file tree 4 files changed +10
-33
lines changed Expand file tree Collapse file tree 4 files changed +10
-33
lines changed Original file line number Diff line number Diff line change 3535 tags : asmlib
3636
3737 - name : ASMlib | Rescan ASM disks
38- shell : service oracleasm scandisks
38+ shell : /etc/init.d/ oracleasm scandisks
3939 when : device_persistence == 'asmlib'
4040 tags : asmlib
4141
4242 - name : ASMlib | List ASM disks
43- shell : service oracleasm listdisks
43+ shell : /etc/init.d/ oracleasm listdisks
4444 when : device_persistence == 'asmlib'
4545 register : listdisks
4646 tags : asmlib
Original file line number Diff line number Diff line change 5050 asmlib_rpm : " {% if ansible_distribution_major_version|int==6%}{{asmlib_rpm_el6}}{%elif ansible_distribution_major_version|int==7 %}{{asmlib_rpm_el7}}{% else %}None{% endif %}"
5151 asmlib_rpm_el6 : " http://download.oracle.com/otn_software/asmlib/oracleasmlib-2.0.4-1.el6.x86_64.rpm"
5252 asmlib_rpm_el7 : " http://download.oracle.com/otn_software/asmlib/oracleasmlib-2.0.12-1.el7.x86_64.rpm"
53+ asmlib_rpm_sles : " http://oss.oracle.com/projects/oracleasm-support/dist/files/RPMS/sles12/amd64/2.1.8/oracleasm-support-2.1.8-1.SLE12.x86_64.rpm"
5354 # ol6_repo_file: public-yum-ol6.repo
5455 repo_dir : /etc/yum.repos.d/
5556
202203 oracle_asm_packages_sles :
203204 - oracleasm-kmp-default
204205 - oracleasm-kmp-xen
205- - oracleasm-support
206+ - " {{ asmlib_rpm_sles }} "
206207
207208
208209
Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 253253 when : ansible_os_family == 'Suse'
254254 tags : seclimit
255255
256- - name : Count number of kernel lines that needs to be changed (numa=off transparent_hugepage=never)
257- shell : cat /etc/grub.conf | grep title |wc -l
258- register : count
259- tags : thpnuma
260-
261- - name : Disable Transparent Hugepages (in grub.conf)
262- lineinfile : dest=/etc/grub.conf
263- backup=True
264- backrefs=True
265- state=present
266- regexp='(^\s+kernel(\s+(?!transparent_hugepage=never)[\w=/\-\.]+)*)\s*$'
267- line='\1 transparent_hugepage=never'
268- with_sequence : start=0 end={{ count.stdout }}
269- when : ansible_os_family == 'RedHat'
270- tags : thpnuma
271-
272- - name : Disable Numa (in grub.conf)
273- lineinfile : dest=/etc/grub.conf
274- backup=True
275- backrefs=True
276- state=present
277- regexp='(^\s+kernel(\s+(?!numa=off)[\w=/\-\.]+)*)\s*$'
278- line='\1 numa=off'
279- with_sequence : start=0 end={{ count.stdout }}
280- tags : thpnuma
281- when : disable_numa_boot and ansible_os_family == 'RedHat'
282-
283- - name : Disable Transparent Hugepages (runtime)
284- shell : if test -f /sys/kernel/mm/transparent_hugepage/enabled; then echo never > /sys/kernel/mm/transparent_hugepage/enabled; fi;
285- tags : tphnuma
256+ - include : " {{ ansible_os_family }}-{{ ansible_distribution_major_version }}.yml"
257+ # when: ansible_os_family == 'RedHat'
258+
286259
287260 - name : Network | Setup ip-address for RAC Interconnect
288261 template : src=ifcfg-eth1.j2 dest=/etc/sysconfig/network-scripts/ifcfg-eth1 owner=root mode=0644
You can’t perform that action at this time.
0 commit comments