Giter Site home page Giter Site logo

FAILED! => {"changed": false, "msg": "AnsibleUndefinedVariable: 'ansible.vars.hostvars.HostVarsVars object' has no attribute 'ansible_host'"} about kubeinit HOT 4 CLOSED

jeffabailey avatar jeffabailey commented on August 15, 2024
FAILED! => {"changed": false, "msg": "AnsibleUndefinedVariable: 'ansible.vars.hostvars.HostVarsVars object' has no attribute 'ansible_host'"}

from kubeinit.

Comments (4)

ccamacho avatar ccamacho commented on August 15, 2024 1

I didnt see this again @jeffabailey I built all the packages for aarch64 but there are some changes needed in the guest vm images to have it running in ARM. (Rocky should work ootb I dont think this will ever work on a raspberry)

from kubeinit.

ccamacho avatar ccamacho commented on August 15, 2024

Hi, would you mind running the de[ployment like this?

ansible-playbook     -v --user root     -e kubeinit_spec=k8s-libvirt-1-1-1   -e hypervisor_hosts_spec='[[ansible_host=nyctea],[ansible_host=tyto]]'      ./kubeinit/playbook.yml

I bet you are using the default inventory file, there might be a nit there.

from kubeinit.

Gl1TcH-1n-Th3-M4tR1x avatar Gl1TcH-1n-Th3-M4tR1x commented on August 15, 2024

Or you can have:

hypervisor_hosts:
  hosts:
    hypervisor-01:
      ansible_host: nyctea
    hypervisor-02:
      ansible_host: tyto

In your inventory.yml file

from kubeinit.

jeffabailey avatar jeffabailey commented on August 15, 2024

@ccamacho I updated to the latest code and ran the command.

I encountered a new error.

fatal: [hypervisor-01]: UNREACHABLE! => {"changed": false, "msg": "Data could not be sent to remote host \"nyctea\". Make sure this host can be reached over ssh: Warning: Identity file /root/.ssh/kubeinit_id_rsa not accessible: Permission denied.\nCan't open user config file /root/.ssh/k8scluster_config: Permission denied\r\n", "unreachable": true}

I wonder if it makes sense for me to clone this repo and set up a test like this one for Rocky Linux & Raspian?

https://github.com/Kubeinit/kubeinit/actions/workflows/distro_test.yml

What do you think?

@Gl1TcH-1n-Th3-M4tR1x Thanks for the input, but the inventory.yml already contains that configuration.

from kubeinit.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.