Coder Social home page Coder Social logo

Comments (5)

gbot avatar gbot commented on August 15, 2024 1

@resmo Thanks so much for the tip! Using compose works fine. I didn't realise that was possible to set directly in the inventory file. I just thought it was a bug because I couldn't see when you want the default behaviour - if the "label" is just set as arbitrary text labels on your Vultr account, Ansible will fail to connect.

from ansible-collection-vultr.

nschlemm avatar nschlemm commented on August 15, 2024 1

@gbot thanks for filing this - stumbled over this as well ...
@resmo thanks for the compose hint, but I also support filing this as bug rather than a simple documentation issue as using the main_ip as default seems most sensible rather than an arbitrary text label ;)

from ansible-collection-vultr.

resmo avatar resmo commented on August 15, 2024

Thanks @gbot for the report.

I don't think it's necessarily a bug, but certainly a documentation issue. We will look into it.
In the meantime, we suggest setting ansible_host with compose:

plugin: vultr.cloud.vultr
compose:
  ansible_host: vultr_main_ip

from ansible-collection-vultr.

resmo avatar resmo commented on August 15, 2024

(issue got closed by accident merging #53, repoened)

I would like to briefly share my thoughts and concerns: defining ansible_host at host_vars level has a high prio in the ranking of variables.

In many probably most cases, main_ip would be the one users would want but if it should be possible to communicate via DNS resolve, SSH config (bastion host), VPN, inside Vultr VPC and via things I haven't thought of, this defaulting ansible_host could make things more complicated or limited.

Short, I am worried this default is not just a default but almost a hardcoded setting.

from ansible-collection-vultr.

resmo avatar resmo commented on August 15, 2024

fixed by #53

from ansible-collection-vultr.

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.