infraly / k8s-on-openstack

An opinionated way to deploy a Kubernetes cluster on top of an OpenStack cloud.
Apache License 2.0
112 stars 48 forks source link

ansible-playbook site.yaml throughs an error #11

Closed imedaouidene closed 6 years ago

imedaouidene commented 6 years ago

Hi , I'm trying to excute your code and I've got the below problem :

 [WARNING]: provided hosts list is empty, only localhost is available

ERROR! The handlers/main.yml file for role 'kubeadm' must contain a list of tasks

The error appears to have been in '/home/ubuntu/k8s-on-openstack/roles/kubeadm/tasks/main.yaml': line 1, column 1, but may
be elsewhere in the file depending on the exact syntax problem.

The offending line appears to be:

- name: Install k8s APT repo GPG key
^ here
imedaouidene commented 6 years ago

upgrading to ansible 2.4.3.0 solved the problem !