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

Vagrant role - rpm install fails #10

Open
bparry02 opened this issue Jan 27, 2021 · 0 comments
Open

Vagrant role - rpm install fails #10

bparry02 opened this issue Jan 27, 2021 · 0 comments

Comments

@bparry02
Copy link

When I try to install vagrant 2.2.7 on RHEL 8.3 with ansible 2.9.16, the package install task fails with:

TASK [crivetimihai.virtualization.vagrant : install RedHat packages] *********************************************************************************
fatal: [localhost]: FAILED! => {"changed": false, "msg": "Failed to validate GPG signature for vagrant-1:2.2.7-1.x86_64"}

I believe this occurs because the RPM is not signed. Instead Hashicorp suggests validating the checksum. However, I did not experience this issue when installing on RHEL 8.0 with a slightly older version of ansible. I suppose it's possible a python module version changed, such as the one for dnf.

To work around this issue, I disabled the gpg check in my fork:

- name: install RedHat packages
  package:
    name: "{{ redhat_packages }}"
    state: present
    disable_gpg_check: yes
  become: yes
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

1 participant