---
# 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