Bug #31430
closedInstaller can't install the Ansible plugin on Debian/Ubuntu
Description
Ohai,
while playing with the idea in https://community.theforeman.org/t/testing-plugins-that-go-with-a-release/21475, I noticed that the Installer will fail trying to install the Ansible plugin on Debian/Ubuntu.
On Debian 10, the installer will fail with:
2020-12-02 09:15:13 [ERROR ] [configure] Execution of '/usr/bin/apt-get -q -y -o DPkg::Options::=--force-confold install ansible-runner' returned 100: Reading package lists... 2020-12-02 09:15:13 [ERROR ] [configure] Building dependency tree... 2020-12-02 09:15:13 [ERROR ] [configure] Reading state information... 2020-12-02 09:15:13 [ERROR ] [configure] E: Unable to locate package ansible-runner 2020-12-02 09:15:13 [ERROR ] [configure] /Stage[main]/Foreman_proxy::Plugin::Ansible::Runner/Package[ansible-runner]/ensure: change from 'purged' to 'present' failed: Execution of '/usr/bin/apt-get -q -y -o DPkg::Options::=--force-confold install ansible-runner' returned 100: Reading package lists...
This is because the repo we configure (https://releases.ansible.com/ansible-runner/deb/) doesn't carry packages for buster
.
However, while it does carry packages for bionic
(Ubuntu 18.04, which we also support), the installer installs the wrong GPG key (AC48AC71DA695CA15F2D39C4B84E339C442667A9 from https://releases.ansible.com/keys/RPM-GPG-KEY-ansible-release.pub), while the packages are signed with B719 6EFF 934F BC94 FBCD F40D D430 849D 3DD2 9021, so the installation will also fail there.