aboutsummaryrefslogtreecommitdiffstats
path: root/resources/tools/testbed-setup/ansible/roles/sut/tasks/taishan_workaround.yaml
blob: e262e7288b241a463cb214f1b38011c5594b010b (plain)
1
2
3
4
5
6

@media only all and (prefers-color-scheme: dark) {
.highlight .hll { background-color: #49483e }
.highlight .c { color: #75715e } /* Comment */
.highlight .err { color: #960050; background-color: #1e0010 } /* Error */
.highlight .k { color: #66d9ef } /* Keyword */
.highlight .l { color: #ae81ff } /* Literal */
.highlight .n { color: #f8f8f2 } /* Name */
.highlight .o { color: #f92672 } /* Operator */
.highlight .p { color: #f8f8f2 } /* Punctuation */
.highlight .ch { color: #75715e } /* Comment.Hashbang */
.highlight .cm { color: #75715e } /* Comment.Multiline */
.highlight .cp { color: #75715e } /* Comment.Preproc */
.highlight .cpf { color: #75715e } /* Comment.PreprocFile */
.highlight .c1 { color: #75715e } /* Comment.Single */
.highlight .
---
# 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