2 # file: roles/sut/tasks/taishan_workaround.yaml
4 - name: Ensure systemd directory exists
6 path: "/etc/systemd/system"
11 tags: taishan-workaround
13 - name: Copy systemd numa config unit file
15 src: "files/taishan_workaround.service"
16 dest: "/etc/systemd/system/nic-numa-config.service"
20 register: numa_config_service
21 tags: taishan-workaround
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
28 - name: Enable numa config service
29 command: "systemctl enable nic-numa-config.service"
30 tags: taishan-workaround