Skip to content

'ansible.vars.hostvars.HostVarsVars object' has no attribute 'ansible_ssh_host' #161

@MoralCode

Description

@MoralCode

When trying to set up KNIX via ansible, i noticed the following error in the debug section of the riak.log file:

The task includes an option with an undefined variable. The error was: {{ hostvars[groups['riak'][0]].ansible_ssh_host }}: 'ansible.vars.hostvars.HostVarsVars object' has no attribute 'ansible_ssh_host'\n\nThe error appears to be in '[REDACTED]/deploy/ansible/riak.yaml': line 75, column 5, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n  - debug:\n    ^ here\n

this seems to cause a generic failure with not a lot of logs visible in make after the failure of TriggersFrontend to build (see #160), but :

ansible-playbook -e "@settings.json" riak.yaml 2>&1 >riak.log.tmp
/usr/lib/python3/dist-packages/paramiko/transport.py:237: CryptographyDeprecationWarning: Blowfish has been deprecated
  "class": algorithms.Blowfish,
BECOME password: 
[WARNING]: Consider using 'become', 'become_method', and 'become_user' rather
than running su
make: *** [Makefile:42: riak.log] Error 2

Could this maybe be some issue with newer versions of ansible?

im using ansible 2.10.8 with python 3.10.12 on a linux host

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions