kubernetes-retired / contrib

[EOL] This is a place for various components in the Kubernetes ecosystem that aren't part of the Kubernetes core.
Apache License 2.0
2.46k stars 1.68k forks source link

ansible - vagrant - kubernetes error during vagrant up #2998

Closed elfiii closed 5 years ago

elfiii commented 5 years ago

Hi,

I have just tried to deploy Kubernetes using Vagrant and Ansible. I have followed the instruction found at https://github.com/kubernetes/contrib/tree/master/ansible/vagrant and I got the following error:

kube-node-3: Running ansible-playbook...

[DEPRECATION WARNING]: 'include' for playbook includes. You should use 'import_playbook' instead. This feature will be removed in version 2.8. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg. ERROR! no action detected in task. This often indicates a misspelled module name, or incorrect module path.

The error appears to have been in '/Users/elenitrouva/Dev/contrib/ansible/roles/etcd/tasks/system_container.yml': line 6, column 3, but may be elsewhere in the file depending on the exact syntax problem.

The offending line appears to be:

Ansible failed to complete successfully. Any error output should be visible above. Please fix these errors and try again.

elfiii commented 5 years ago

I am running Ansible 2.7.8 on Mac OS 10.14.3.

I have tried to downgrade Ansible to 2.0.2.0 but this didn't work neither:

kube-node-3: Running ansible-playbook...

ERROR! 'check_mode' is not a valid attribute for a Task

The error appears to have been in '/Users/elenitrouva/Dev/contrib/ansible/roles/pre-ansible/tasks/main.yml': line 2, column 3, but may be elsewhere in the file depending on the exact syntax problem.

The offending line appears to be:


Ansible failed to complete successfully. Any error output should be visible above. Please fix these errors and try again.