mKeRix / ansible-playbooks

Ansible Playbooks for my other projects like room-assistant.
MIT License
17 stars 17 forks source link

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

Open Bleala opened 3 years ago

Bleala commented 3 years ago

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

mKeRix commented 3 years ago

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?

Bleala commented 3 years ago

@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 :/

Bleala commented 3 years ago

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