Enable copr repository with dnf module

Hi,

I wonder what’s the recommended way to enable a COPR repository in dnf using Ansible?

I could just use a link to:
https://copr.fedorainfracloud.org/coprs/vondruch/doublecmd/repo/fedora-30/vondruch-doublecmd-fedora-30.repo
(probably with a guard task to prevent an unnecessary network call if already installed)

However, maybe there is some more dedicated way to use a dnf plugin for copr?

Marcin

Hi,

I wonder what's the recommended way to enable a COPR repository in dnf
using Ansible?

I could just use a link to:
https://copr.fedorainfracloud.org/coprs/vondruch/doublecmd/repo/fedora-30/vondruch-doublecmd-fedora-30.repo
(probably with a guard task to prevent an unnecessary network call if
already installed)

However, maybe there is some more dedicated way to use a dnf plugin for copr?

I don't think it is possible today. I could imagine a yum_copr/dnf_copr module to accomplish that goal, or an extra feature to yum_repository module, however.

Marcin

V/r,
James Cassell