Open rajeevpd opened 6 years ago
Hi, @rajeevaaron which version of Ansible are you using?
Thanks kairen for your response. appreciate it :) i get pass the above error with latetest ansible, however now struck with the Destination directory /usr/lib/systemd/system/kubelet.service.d does not exist issue. here is the ansible log.
TASK [commons/pre-install : Install kubernetes packages (RHEL/CentOS)] ***** ok: [10.145.76.134] => (item=[u'kubectl', u'kubelet', u'kubernetes-cni', u'kubeadm'])
TASK [commons/pre-install : Install kubernetes packages (Debian/Ubuntu)] *** skipping: [10.145.76.134] => (item=[])
TASK [commons/pre-install : Disable system swap] *** changed: [10.145.76.134]
TASK [commons/pre-install : Pass bridged IPv4 traffic to iptables? chains] ***** changed: [10.145.76.134]
TASK [commons/pre-install : Override config file directory for Debian] ***** skipping: [10.145.76.134]
TASK [commons/pre-install : Copy kubeadm conf to drop-in directory] **** fatal: [10.145.76.134]: FAILED! => {"changed": false, "checksum": "7400ff07683838ae492e8ee9fc00a4f889375211", "msg": "Destination directory /usr/lib/systemd/system/kubelet.service.d does not exist"} to retry, use: --limit @/root/boltz/k8c/kubeadm-ansible/site.retry
PLAY RECAP ***** 10.145.76.123 : ok=9 changed=3 unreachable=0 failed=0 10.145.76.125 : ok=9 changed=3 unreachable=0 failed=0 10.145.76.132 : ok=9 changed=3 unreachable=0 failed=0 10.145.76.134 : ok=14 changed=5 unreachable=0 failed=1
What OS are you running this against? @rajeevpd
cat inventory
[master] 10.145.74.94
[node] 10.145.74.95 10.145.74.96 10.145.74.97 10.145.74.98
[kube-cluster:children] master node
ansible-playbook site.yml -vvv
Using /root/boltz/kubeadm-ansible/ansible.cfg as config file ERROR! no action detected in task. This often indicates a misspelled module name, or incorrect module path.
The error appears to have been in '/root/boltz/kubeadm-ansible/roles/docker/tasks/main.yml': line 3, column 3, but may be elsewhere in the file depending on the exact syntax problem.
The offending line appears to be:
The error appears to have been in '/root/boltz/kubeadm-ansible/roles/docker/tasks/main.yml': line 3, column 3, but may be elsewhere in the file depending on the exact syntax problem.
The offending line appears to be:
#