如果不切换身份,则出现权限错误:
TASK [os-services/roles/prepare : Disable service ufw] *****
fatal: [master]: FAILED! => {"changed": false, "msg": "Unable to disable service ufw: Synchronizing state of ufw.service with SysV service script with /lib/systemd/systemd-sysv-install.\nExecuting: /lib/systemd/systemd-sysv-install disable ufw\nFailed to reload daemon: Interactive authentication required.\nupdate-rc.d: error: Permission denied\n"}
ubuntu20.04,kuboard spray安装k8s。
设置切换身份,使用管理员权限后,出现错误 TASK [bootstrap-os : Ensure bash_completion.d folder exists] *** fatal: [master]: FAILED! => {"msg": "Timeout (12s) waiting for privilege escalation prompt: "}
NO MORE HOSTS LEFT *****
如果不切换身份,则出现权限错误: TASK [os-services/roles/prepare : Disable service ufw] ***** fatal: [master]: FAILED! => {"changed": false, "msg": "Unable to disable service ufw: Synchronizing state of ufw.service with SysV service script with /lib/systemd/systemd-sysv-install.\nExecuting: /lib/systemd/systemd-sysv-install disable ufw\nFailed to reload daemon: Interactive authentication required.\nupdate-rc.d: error: Permission denied\n"}
应该怎么设置呢?