Install source package with zypper without gpgcheck

I would like to install a source package from a script (ansible). It does not seem possible to disable gpg-checks for a source-rpm (zypper install-source command). The options --nogpgcheck, --allow-unsigned-rpm are not supported for this command. Any help appreciated.


-y, --no-confirm            Don't require user interaction. Alias for the --non-interactive global
                            option. Default: false

The --non-interactive option defaults to abort for non-signed source packages.

–allow-unsigned-rpm is default for source RPMs with source-install and it most certainly works. Show actual command and its output.

P.S. this would be more in place in Applications subforum. It is not really related to distribution installation.

Done by me.