Skip to content

Commit 2bb69ab

Browse files
authored
ubuntu hyperthreading updates
1 parent b151f37 commit 2bb69ab

File tree

2 files changed

+40
-0
lines changed

2 files changed

+40
-0
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,5 @@
11
- include: el.yml
22
when: ansible_os_family == 'RedHat'
3+
4+
- include: ubuntu.yml
5+
when: ansible_distribution == 'Ubuntu'
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
---
2+
- name: Make sure directory exist
3+
become: true
4+
file:
5+
path: /opt/oci-hpc/sbin
6+
state: directory
7+
mode: '0755'
8+
9+
- name: Copy script
10+
become: true
11+
copy:
12+
src: control_hyperthreading_ubuntu.sh
13+
dest: /opt/oci-hpc/sbin/control_hyperthreading_ubuntu.sh
14+
mode: '0755'
15+
16+
- name: Copy service unit
17+
become: true
18+
copy:
19+
src: disable-hyperthreading_ubuntu.service
20+
dest: /etc/systemd/system/disable-hyperthreading_ubuntu.service
21+
22+
- name: Create a unit file
23+
become: true
24+
copy:
25+
src: disable-hyperthreading_ubuntu.service
26+
dest: /etc/systemd/system/disable-hyperthreading.service
27+
28+
- name: Force systemd to reread configs
29+
ansible.builtin.systemd:
30+
daemon_reload: yes
31+
32+
- name:
33+
ansible.builtin.systemd:
34+
name: disable-hyperthreading_ubuntu.service
35+
state: started
36+
enabled: yes
37+
when: not hyperthreading|default(true)|bool

0 commit comments

Comments
 (0)