You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)
/kind bug
/kind feature
Description
I cannot run containers.podman.podman_image in my ansible playbook due to:
fatal: [localhost]: FAILED! => {
"msg": "Could not find imported module support code for common. Looked for either LooseVersion.py or version.py"
}
Steps to reproduce the issue:
add to your testing playbook:
tasks:
- name: installing podman
package:
name: "podman"
state: present
- name: Pull a specific version of an image
containers.podman.podman_image:
name: "redis"
tag: "4"
run it with ansible-playbook -i inventory.yaml my-playbook.yaml
you can see the error (maybe)
Describe the results you received:
I got an error message above.
Describe the results you expected:
Running playbook
Additional information you deem important (e.g. issue happens only occasionally):
Version of the containers.podman collection: Either git commit if installed from git: git show --summary Or version from ansible-galaxy if installed from galaxy: ansible-galaxy collection list | grep containers.podman
ansible-galaxy collection install containers.podman -f --force-with-deps
Process install dependency map
Starting collection install process
Installing 'containers.podman:1.15.1' to '/home/<username>/.ansible/collections/ansible_collections/containers/podman'
Playbok you run with ansible (e.g. content of playbook.yaml):
- name: Pull, tag and push OCI imageshosts: localhostconnection: localgather_facts: falsevars:
tag: "4"images: []tasks:
- name: installing podmanpackage:
name: "podman"state: present
- name: Pull a specific version of an imagecontainers.podman.podman_image:
name: "redis"tag: "{{ tag }}"
Command line and output of ansible run with high verbosity
Please NOTE: if you submit a bug about idempotency, run the playbook with --diff option, like:
I don't think it's gonna play with Ansible 2.9. Either install ansible-core from latest versions, or use very old ansible-podman collection version (not recommended). pip install ansible-core
Also Ubuntu 20 is very old. It's recommended 22.04 if not 24.04. Podman is officially supported only from 20.10 iirc.
All these very old things might be incompatible with the new software.
Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)
/kind bug
/kind feature
Description
I cannot run
containers.podman.podman_image
in my ansible playbook due to:Steps to reproduce the issue:
run it with
ansible-playbook -i inventory.yaml my-playbook.yaml
you can see the error (maybe)
Describe the results you received:
I got an error message above.
Describe the results you expected:
Running playbook
Additional information you deem important (e.g. issue happens only occasionally):
Version of the
containers.podman
collection:Either git commit if installed from git:
git show --summary
Or version from
ansible-galaxy
if installed from galaxy:ansible-galaxy collection list | grep containers.podman
Output of
ansible --version
:Output of
podman version
:Output of
podman info --debug
:Package info (e.g. output of
rpm -q podman
orapt list podman
):Playbok you run with ansible (e.g. content of
playbook.yaml
):Command line and output of ansible run with high verbosity
Please NOTE: if you submit a bug about idempotency, run the playbook with
--diff
option, like:ansible-playbook -i inventory --diff -vv playbook.yml
Additional environment details (AWS, VirtualBox, physical, etc.):
Running on Ubuntu 20 in WSL 2.0
The text was updated successfully, but these errors were encountered: