ansible-FAQ


报错信息

ERROR! couldn't resolve module/action 'ansible.builtin.systemd_service'. This often indicates a misspelling, missing collection, or incorrect module path.

The error appears to be in '/root/kubespray/roles/kubernetes/preinstall/tasks/0010-swapoff.yml': line 2, column 3, but may
be elsewhere in the file depending on the exact syntax problem.

The offending line appears to be:

---
- name: Mask swap.target (persist swapoff)
  ^ here