geerlingguy / ansible-role-nodejs

Ansible Role - Node.js
https://galaxy.ansible.com/geerlingguy/nodejs/
MIT License
410 stars 252 forks source link

No package matching 'gnupg2' is available #114

Closed asfarley closed 4 years ago

asfarley commented 4 years ago

I'm trying to use ansible-playbook to configure this role on my remote host, but I'm getting an errror:

TASK [geerlingguy.nodejs : Ensure dependencies are present.] *************************************************************************************************************************
fatal: [XXXXXXXXXX.compute.amazonaws.com]: FAILED! => {"changed": false, "msg": "No package matching 'gnupg2' is available"}

From Google, it seems that this happens if I have not updated apt packages. However, previously in my playbook, I've done this:

- name: Update all packages to the latest version
  apt: {upgrade: dist}

Shouldn't this update any necessary packages?

asfarley commented 4 years ago

Needed to add a repository before this role because I was using Ubuntu 18.04:

neilyoung commented 2 years ago

How did you do that? I can't run a task before the role

neilyoung commented 2 years ago

Found it: pre_task