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