Code Monkey home page Code Monkey logo

Comments (6)

LKaemmerling avatar LKaemmerling commented on June 5, 2024

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.

ddozza avatar ddozza commented on June 5, 2024

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.

LKaemmerling avatar LKaemmerling commented on June 5, 2024

Do you use Ansible 2.10? Then you need to specify the full module name:
hetzner.hcloud.hcloud_floating_ip

from hetzner.hcloud.

ddozza avatar ddozza commented on June 5, 2024

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.

LKaemmerling avatar LKaemmerling commented on June 5, 2024

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.

ddozza avatar ddozza commented on June 5, 2024

Solved!

from hetzner.hcloud.

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.