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

snap module doesn't expose --dangerous parameter for installing unsigned packages #5715

Closed
1 task done
chasehippen opened this issue Dec 20, 2022 · 3 comments · Fixed by #6908
Closed
1 task done
Labels
feature This issue/PR relates to a feature request has_pr module module os packaging plugins plugin (any type)

Comments

@chasehippen
Copy link

Summary

I'm trying to install Cider music player (https://download.cider.sh/) using the community.general.snap module in Ansible. This package apparently isn't signed, so to install it I need to pass the --dangerous flag to avoid the following signature verification error: error: cannot find signatures with metadata for snap .

The community.general.snap ansible module doesn't have a "dangerous" parameter https://docs.ansible.com/ansible/latest/collections/community/general/snap_module.html , so I tried passing the flag to the "options" parameter assuming it was a boolean option, but I get the same error: error: cannot find signatures with metadata for snap with this task:

- name: Get Cider Installer
  get_url:
    url: https://github.com/ciderapp/cider-releases/releases/download/v1.5.9/cider_1.5.9_amd64.snap
    dest: /tmp/cider_1.5.9_amd64.snap

- name: Install Cider
  become: true
  community.general.snap:
    name: /tmp/cider_1.5.9_amd64.snap
    options:
      dangerous=true

Besides using the ansible.builtin.shell module & simply running snap install /tmp/cider_1.5.9_amd64.snap --dangerous as a shell command, it appears there's no way to install unsigned snap packages using Ansible.

Issue Type

Feature Idea

Component Name

snap

Additional Information

Code of Conduct

  • I agree to follow the Ansible Code of Conduct
@ansibullbot
Copy link
Collaborator

Files identified in the description:

If these files are incorrect, please update the component name section of the description or use the !component bot command.

click here for bot help

@ansibullbot
Copy link
Collaborator

@ansibullbot ansibullbot added feature This issue/PR relates to a feature request module module os packaging plugins plugin (any type) labels Dec 20, 2022
@russoz
Copy link
Collaborator

russoz commented Jul 11, 2023

Hi @chasehippen the PR mentioned above should solve the problem. Thanks for reporting.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature This issue/PR relates to a feature request has_pr module module os packaging plugins plugin (any type)
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants