mKeRix/ansible-playbooks

Always getting an error "The task includes an option with an undefined variable"

Bleala opened this issue · 3 comments

Hello there,

i'm always getting an error, when installing with ansible.

fatal: [192.168.188.78]: FAILED! => {"msg": "The task includes an option with an undefined variable. The error was: 'dict object' has no attribute 'path'\n\nThe error appears to be in '/root/ansible/room-assistant/roles/room-assistant/tasks/main.yml': line 38, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n register: find_node\n- name: Set node capabilities\n ^ here\n"}

Do you have an idea what the issue is here?

Greetings

Hm - both the steps around that line contain path settings, but one of them is set to be the output from something else. Maybe that's the cause of the issue? If you log into your machine, do you have any file under /usr/bin/node?

@mKeRix i looked it up and yes, i have the node file in /usr/bin/node

Installed npm and nodejs correctly and it's working, so i don't know why the ansible install fails :/

@mKeRix do you have another idea what i could try?