sorry, my bad. There is I just made an error in the post. The task with such a wrong indentation would also just fail and not produce a keyfile that would not work I guess. Weirdly I can not edit my own post. So this is what it actually is.
- name: Add node repo using key from URL
ansible.builtin.deb822_repository:
name: node
uris: https://deb.nodesource.com/node_{{ node_major }}.x
suites: '{{ ansible_distribution_release }}'
components: main
architectures: amd64
signed_by: https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key
The issue is that the Suites line is missing from your node.sources?
This is a guess but perhaps ansible_distribution_release is not defined and you need to add an explicit gather facts directive somewhere?
No problem, I’ve tried to work around the fact that the deb822_repository module doesn’t support diff mode and doesn’t have the option to produce backups.
Another shortcoming is that it only allows one set of sources per file, which is not the default for the file in Ubuntu 24.04 or Debian Trixie, so separate files have to be generated, eg ubuntu.sources and ubuntu-security.sources etc.
It’s odd that I don’t need trusted: true, the only other difference that perhaps has an effect here is the signed_by, I’m using a path to a local file rather than a URL .
actually I do not see through that role entirely, so it’s difficult to compare. But it would be probably beneficial not to need to use trusted I guess.
all the Webarchitects stuff looks pretty cool and sophisticated. Probably I goo go-to-place for various stuff