Closed hkcomori closed 2 years ago
Let's ask @Yajo , I don't use ubuntu.
Sorry I always ran this without podman installation because I have another role that installs it.
Basically, what it does is:
# meta/main.yaml
dependencies:
- role: systemli.apt_repositories
vars:
apt_repositories:
- preset: kubic
when: |
(ansible_distribution == 'Debian' and
ansible_distribution_version is version ('11', '<')) or
(ansible_distribution == 'Ubuntu' and
ansible_distribution_version is version('21.04', '<'))
# tasks/main.yaml
- name: install required packages
package:
name:
- podman
And it works.
OK... What version do you use? I used Ubuntu server 20.04 64bit and it did not work well. After running systemli.apt_repositories with the same settings, but without this role, manually installing Podman also failed.
I am concerned that instructions in systemli.apt_repositories are different from official instructions.
That one might be too old... I use 21.04.
21.04 does not require a kubic repository. You can install Podman from the distribution's official repositories. The following code will not run systemli.apt_repositories on 21.04 or later.
But 20.04 is the latest LTS version. I'm not allowed to use anything other than LTS by the policy of my organization.
This role and systemli.apt_repositories support 20.04 (focal), as shown in meta/default.yml. So I expect it to work on 20.04 as well.
Fortunately, I found an alternative: chasinglogic.podman. Therefore, I am not in a hurry to solve this issue.
Fix: https://github.com/systemli/ansible-role-apt_repositories/pull/9
chasinglogic.podman
also does its own stuff and doesn't work with 20.04 according to my tests.
Thanks for your fix.
If I run rm -Rf /etc/apt/preferences.d/kubic.pref
, then it installs with no problem too.
chasinglogic.podman
also does its own stuff and doesn't work with 20.04 according to my tests.
Oh, really? At least in my environment, the installation was successful and the container seems to be generally working. But I have not tested the details yet.
is this still an issue or can it be closed? Or should podman install task be excluded while on ubuntu?
Sorry for the late response. This issue has been resolved. Thanks for your help.
My environment:
I ran this role with the following settings to install
podman
.However, it failed. I got the following error.
It looks like the addition of the kubic repository is not working. The following official installation procedure successfully installed without errors.
However, I could not identify the cause.
What am I doing wrong?
Thanks you.