Unit systemd-resolved.service is masked

2/1/2020

I am trying to install kubernetes with kubespray on my VPS servers. When I execute the playbook, I've got the following error message:

fatal: [k8s-m-1]: FAILED! => {"changed": true, "msg": "non-zero return code", "rc": 1, "stderr": "Shared connection to xxx.xxx.xxx.xxx closed.\r\n", "stderr_lines": ["Shared connection to xxx.xxx.xxx.xxx closed."], "stdout": "Failed to restart systemd-resolved.service: Unit systemd-resolved.service is masked.\r\n", "stdout_lines": ["Failed to restart systemd-resolved.service: Unit systemd-resolved.service is masked."]}
fatal: [k8s-m-2]: FAILED! => {"changed": true, "msg": "non-zero return code", "rc": 1, "stderr": "Shared connection to xxx.xxx.xxx.xxx closed.\r\n", "stderr_lines": ["Shared connection to xxx.xxx.xxx.xxx closed."], "stdout": "Failed to restart systemd-resolved.service: Unit systemd-resolved.service is masked.\r\n", "stdout_lines": ["Failed to restart systemd-resolved.service: Unit systemd-resolved.service is masked."]}
fatal: [k8s-n-1]: FAILED! => {"changed": true, "msg": "non-zero return code", "rc": 1, "stderr": "Shared connection to xxx.xxx.xxx.xxx closed.\r\n", "stderr_lines": ["Shared connection to xxx.xxx.xxx.xxx closed."], "stdout": "Failed to restart systemd-resolved.service: Unit systemd-resolved.service is masked.\r\n", "stdout_lines": ["Failed to restart systemd-resolved.service: Unit systemd-resolved.service is masked."]}  

What am I doing wrong?

-- zero_coding
kubernetes
kubespray

0 Answers