Kubespray: "ERROR! no action detected in task..."

Created on 13 May 2018  路  7Comments  路  Source: kubernetes-sigs/kubespray

ubuntu 18.2
ansible 2.5.0
python 2.7.12
kubespray commit d7d85d2d3e9cf0ffef291b0e7bc086a32caa6bb6

$ ansible-playbook -i my_inventory/inventory/hosts cluster.yml -vvv
ansible-playbook 2.5.0
  config file = /home/ivan/kubespray/ansible.cfg
  configured module search path = [u'/home/ivan/kubespray/library']
  ansible python module location = /usr/local/lib/python2.7/dist-packages/ansible
  executable location = /usr/local/bin/ansible-playbook
  python version = 2.7.12 (default, Dec  4 2017, 14:50:18) [GCC 5.4.0 20160609]
Using /home/ivan/kubespray/ansible.cfg as config file
Parsed /home/ivan/kubespray/my_inventory/inventory/hosts inventory source with ini plugin
statically imported: /home/ivan/kubespray/roles/bootstrap-os/tasks/bootstrap-ubuntu.yml
statically imported: /home/ivan/kubespray/roles/bootstrap-os/tasks/bootstrap-debian.yml
statically imported: /home/ivan/kubespray/roles/bootstrap-os/tasks/bootstrap-coreos.yml
statically imported: /home/ivan/kubespray/roles/bootstrap-os/tasks/bootstrap-centos.yml
statically imported: /home/ivan/kubespray/roles/bootstrap-os/tasks/bootstrap-opensuse.yml
statically imported: /home/ivan/kubespray/roles/bootstrap-os/tasks/setup-pipelining.yml
statically imported: /home/ivan/kubespray/roles/kubernetes/preinstall/tasks/verify-settings.yml
statically imported: /home/ivan/kubespray/roles/kubernetes/preinstall/tasks/pre_upgrade.yml
statically imported: /home/ivan/kubespray/roles/kubernetes/preinstall/tasks/set_facts.yml
statically imported: /home/ivan/kubespray/roles/kubernetes/preinstall/tasks/set_resolv_facts.yml
statically imported: /home/ivan/kubespray/roles/kubernetes/preinstall/tasks/resolvconf.yml
statically imported: /home/ivan/kubespray/roles/kubernetes/preinstall/tasks/etchosts.yml
statically imported: /home/ivan/kubespray/roles/kubernetes/preinstall/tasks/dhclient-hooks.yml
statically imported: /home/ivan/kubespray/roles/kubernetes/preinstall/tasks/dhclient-hooks-undo.yml
statically imported: /home/ivan/kubespray/roles/kubernetes/preinstall/tasks/growpart-azure-centos-7.yml
statically imported: /home/ivan/kubespray/roles/docker/tasks/pre-upgrade.yml
statically imported: /home/ivan/kubespray/roles/docker/tasks/systemd.yml
statically imported: /home/ivan/kubespray/roles/rkt/tasks/install.yml
ERROR! no action detected in task. This often indicates a misspelled module name, or incorrect module path.

The error appears to have been in '/home/ivan/kubespray/roles/vault/handlers/main.yml': line 44, column 3, but may
be elsewhere in the file depending on the exact syntax problem.

The offending line appears to be:


- name: unseal vault
  ^ here


The error appears to have been in '/home/ivan/kubespray/roles/vault/handlers/main.yml': line 44, column 3, but may
be elsewhere in the file depending on the exact syntax problem.

The offending line appears to be:


- name: unseal vault
  ^ here

$ ls library/
kube.py

ansible.cfg

[ssh_connection]
pipelining=True
ssh_args = -o ControlMaster=auto -o ControlPersist=30m -o ConnectionAttempts=100 -o UserKnownHostsFile=/dev/null
#control_path = ~/.ssh/ansible-%%r@%%h:%%p
[defaults]
host_key_checking=False
gathering = smart
fact_caching = jsonfile
fact_caching_connection = /tmp
stdout_callback = skippy
library = ./library
callback_whitelist = profile_tasks
roles_path = roles:$VIRTUAL_ENV/usr/local/share/kubespray/roles:$VIRTUAL_ENV/usr/local/share/ansible/roles:/usr/share/kubespray/roles
deprecation_warnings=False
inventory_ignore_extensions = ~, .orig, .bak, .ini, .cfg, .retry, .pyc, .pyo, .creds
remote_user = ansible

Most helpful comment

@mattymo Error still persists after installing ansible-modules-hashivault, issue should be reopened.

All 7 comments

You should install ansible-modules-hashivault and the problem will go away. It was added to requirements.txt https://github.com/kubernetes-incubator/kubespray/blob/master/requirements.txt#L5

@mattymo, these packets should be at ever nodes?

It will be installed by pip on target nodes automatically. On the ansible host, you need to install it by hand.

@mattymo the problem not disappear after pip install ansible-modules-hashivault, my ansible version is ansible 2.5.2

@mattymo thank you.
@zhangbin-intellif after install ansible-modules-hashivault on all nodes by hand the error went away.

@mattymo Error still persists after installing ansible-modules-hashivault, issue should be reopened.

Problem is not with kubespray but with ansible-modules-hashivault (see this issue). You must install ansible via pip and not apt.

Was this page helpful?
0 / 5 - 0 ratings