Comments (6)
This looks like a bug within your placebook. As you can see, it sees the syntax problem not within the hcloud_floating_ip module. Maybe you could try it without a name of the task?
from hetzner.hcloud.
As you suggested I tried without a name task. I get the same error:
Using /etc/ansible/ansible.cfg as config file
ERROR! couldn't resolve module/action 'hcloud_floating_ip'. This often indicates a misspelling, missing collection, or incorrect module path.
The error appears to be in '/home/davide/Projects/K8s/ansible/floating_ip.yml': line 9, column 7, but may
be elsewhere in the file depending on the exact syntax problem.
The offending line appears to be:
tasks:
- name:
^ here
I can regularly use others plugins (hcloud_network, hcloud_subnetwork, hcloud_server, hcloud_server_network) and it doesn't seem there is a syntax error in my playbook.
from hetzner.hcloud.
Do you use Ansible 2.10? Then you need to specify the full module name:
hetzner.hcloud.hcloud_floating_ip
from hetzner.hcloud.
I'm using ansible 2.9
$ ansible --version
ansible 2.9.6
config file = /etc/ansible/ansible.cfg
configured module search path = ['/home/davide/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
ansible python module location = /usr/lib/python3/dist-packages/ansible
executable location = /usr/bin/ansible
python version = 3.8.2 (default, Jul 16 2020, 14:00:26) [GCC 9.3.0]
from hetzner.hcloud.
hcloud_floating_ip
is not available in ansible 2.9 (as this is the last in-tree version). You should install the collection ( and/or update to Ansible 2.10 and use the collection)
from hetzner.hcloud.
Solved!
from hetzner.hcloud.
Related Issues (20)
- hcloud_firewall better error messages for missing port with tcp or udp
- hetzner.hcloud.hcloud_network module is missing network_zone option HOT 4
- Create a server with no public IP and a given static private IP HOT 8
- hcloud_certificate documentation has values in SSH format instead of PEM
- hcloud_certificate domain_names documentation wrong
- hcloud_server delete_protection and rebuild_protection can't be applied HOT 1
- hcloud_firewall cannot delete firewalls that are in use HOT 2
- Drop support for ansible-core 2.13
- 2.4.0 breaks `refresh_inventory`
- Ansible in a venv is not loading the hcloud inventory plugin HOT 3
- hcloud_load_balancer reports change every time HOT 2
- hcloud_load_balancer_service reports change every time HOT 2
- Generate diff for all modules HOT 1
- Create Primary IP on Server
- hcloud_load_balancer_info don't return status HOT 7
- Assign or unassign existing primary IP from the `primary_ip` module
- Volume is unassigned if the server argument is not specified
- No inventory was parsed HOT 3
- Use resource action endpoints instead of global one HOT 1
- Cannot connect to a server via ssh after creating them HOT 2
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 hetzner.hcloud.