Issue with custom apt sources created by deb822_repository

this is how I figured out to make it work now

    - name: Add node repo with 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
        trusted: true
      register: node_repo

where …

trusted: true

brings the solution.


actually as I am writing this I believe there is some sort of mixup trusted: true solves an error equivalent to: ""signatures couldn't be verified""

1 Like