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 failure, possibly related to updated Ansible checking #9

Closed PeteClapham closed 6 years ago

PeteClapham commented 6 years ago

Running on Ubuntu 16.04.3 we can see the following errors raised. These do not arise on earlier releases of Ansible. Other similar reports to the Ansible seem unclear as to the cause,

Fails with Ansible package: 2.0.0.2-2ubuntu1 Last known working, Ansible 1.8x.

Will look more at the Ansible later.

Details:

The error is:

[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/pete/OS/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:

PeteClapham commented 6 years ago

So upgrading ansible to : 2.4.2.0-1ppa~xenial, removes the above. On adding python-shade, all other initial errors seem to have gone.

Looks like an issue for ansible rather than here.