Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Version 7.0.0 applying bug #163

Open
smirko83 opened this issue Feb 29, 2024 · 3 comments
Open

Version 7.0.0 applying bug #163

smirko83 opened this issue Feb 29, 2024 · 3 comments

Comments

@smirko83
Copy link

I'm use:

:~/nodejs-nvm$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 22.04.4 LTS
Release:        22.04
Codename:       jammy
:~/nodejs-nvm$ ansible --version
ansible 2.10.8
  config file = None
  configured module search path = ['/home/user/.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.10.12 (main, Nov 20 2023, 15:14:05) [GCC 11.4.0]

My simple playbook:

---
- hosts: all
  roles:
    - geerlingguy.nodejs

When i trying apply my book with latest role version 7.0.0 i've getting error:

ERROR! couldn't resolve module/action 'ansible.builtin.deb822_repository'. This often indicates a misspelling, missing collection, or incorrect module path.

The error appears to be in '/home/user/.ansible/roles/geerlingguy.nodejs/tasks/setup-Debian.yml': line 21, column 3, but may
be elsewhere in the file depending on the exact syntax problem.

The offending line appears to be:


- name: Add NodeSource repositories for Node.js.
  ^ here

When i trying apply my book with previos role version 6.1.1 i've success.
Thanks in advance for correct error code.

@nlemoine
Copy link

nlemoine commented Mar 1, 2024

Getting the same error here with debian:11-slim since version 7:

#7 42.23 ERROR! couldn't resolve module/action 'ansible.builtin.deb822_repository'. This often indicates a misspelling, missing collection, or incorrect module path.

@RangerMauve
Copy link

Reverting to version 6.1.1 worked for me too. Heres what my requirements.txt looks like now:

---
roles:
  - src: geerlingguy.nodejs
    version: 6.1.1

@statio
Copy link

statio commented Apr 7, 2024

Same issue here, looks like the newest release of the module assume you're running a version of ansible-core that exceeds 2.15, where this builtin module does indeed exist. If you're running this on an OS release that doesn't have prebuilt packages for ansible-core >2.14, you're stuck with building these yourself or rolling back to tag 6.1.1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants