blob: e262e7288b241a463cb214f1b38011c5594b010b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
---
# file: roles/sut/tasks/taishan_workaround.yaml
- name: Ensure systemd directory exists
file:
path: "/etc/systemd/system"
state: "directory"
owner: "root"
group: "root"
mode: "0755"
tags: taishan-workaround
- name: Copy systemd numa config unit file
template:
src: "files/taishan_workaround.service"
dest: "/etc/systemd/system/nic-numa-config.service"
owner: "root"
group: "root"
mode: "0644"
register: numa_config_service
tags: taishan-workaround
- name: Reload systemd daemon
command: "systemctl daemon-reload"
when: (numa_config_service and numa_config_service is changed)
tags: taishan-workaround
- name: Enable numa config service
command: "systemctl enable nic-numa-config.service"
tags: taishan-workaround
|