File tree Expand file tree Collapse file tree 2 files changed +40
-0
lines changed
playbooks/roles/hyperthreading/tasks Expand file tree Collapse file tree 2 files changed +40
-0
lines changed Original file line number Diff line number Diff line change 11- include : el.yml
22 when : ansible_os_family == 'RedHat'
3+
4+ - include : ubuntu.yml
5+ when : ansible_distribution == 'Ubuntu'
Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments