- name: Add NodeSource repositories for Node.js.
ansible.builtin.deb822_repository:
name: nodesource_{{ nodejs_version }}
uris: "https://deb.nodesource.com/node_{{ nodejs_version }}"
types: deb
suites: nodistro
components: main
signed_by: "{{ node_signing_key.dest }}"
state: present
register: node_repo
is giving me:
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 '/.../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
This:
is giving me:
Reproduce this in ansible 2.9 and 2.12
Changing that block to the older:
solves the issue for me.