Comments (5)
@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.
@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.
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.
(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.
fixed by #53
from ansible-collection-vultr.
Related Issues (20)
- [Feature] - Object Storage HOT 1
- [BUG] - Wrong name-label alias in instance_info module
- [Feature] - Container Registry support
- [BUG] - traceback in CI tests
- [Missing] - VPC 2.0 parameter HOT 4
- [BUG] - instance absent fails with "Server is currently locked"
- Consider using true/false for all booleans in docs
- [Feature] State `reinstalled` HOT 1
- [Bug] vultr_tags not returned in inventory HOT 4
- [Feature] - Ability to Reboot Instance(s) HOT 1
- Typo in `instance_info` examples
- [BUG] - Idempotence check fails in vultr.cloud.firewall_rule when ICMP has port HOT 3
- [Feature] - bare metal support HOT 2
- [BUG] - Weird 401 error
- [BUG] - Useless shebangs HOT 5
- [BUG] - internal_ip no longer shows up with ansible-inventory --list HOT 6
- [Feature] - vultr_gateway_v4 not set in hostvars; gateway_v4 appears in vultr.cloud.instance_info HOT 4
- [BUG] - module "reserved_ip" crashes when adding new reserved IP HOT 2
- [Feature] - automatic private network set up with enable_vpc: true|false HOT 6
- Add "user_schema" as parameter in instance module HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ansible-collection-vultr.