Skip to content
Discussion options

You must be logged in to vote

I'm not sure why this wouldn't work. One thing may be the /tmp/ being cleared between module calls, but I don't think that's how it should work. @gmpinder can correct me on that. You can also test it by putting another script module after your current one and running ls /tmp/bitwarden.rpm.

However, you actually do not need the dnf module here at all. I would suggest refactoring your script module call as

  - type: script
    snippets:
      - "curl https://codeberg.org/api/packages/yataro/rpm.repo | sed -e 's/gpgcheck=1/gpgcheck=0/' > /etc/yum.repos.d/sourcegit.repo"
      - "curl https://bitwarden.com/download/?app=desktop&platform=linux&variant=rpm > /tmp/bitwarden.rpm && dnf5 install -…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@AlexFullmoon
Comment options

Answer selected by AlexFullmoon
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants