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
Run the playbook. Notice how Create podman container succeeds while Create podman containers fails with the aforementioned error.
Describe the results you received:
fatal: [HOST]: FAILED! => {"changed": false, "msg": "Filename for container is required for creating a quadlet file."}
Describe the results you expected:
Success similar to using podman_container with loop.
Additional information you deem important (e.g. issue happens only occasionally):
The context for this is a homelab setup where I have a single role that deploys containers in a consistent way and various other roles that pass variables to the former. This is why the example playbook is formatted the way it is with a templated variable instead of defining the container inline.
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
# Assuming the host in the inventory file
Client: Podman Engine
Version: 5.1.0
API Version: 5.1.0
Go Version: go1.22.3
Built: Wed May 29 00:00:00 2024
OS/Arch: linux/amd64
Output of podman info --debug:
Output
host:
arch: amd64buildahVersion: 1.36.0cgroupControllers:
- cpu
- memory
- pidscgroupManager: systemdcgroupVersion: v2conmon:
package: conmon-2.1.10-1.fc40.x86_64path: /usr/bin/conmonversion: 'conmon version 2.1.10, commit: 'cpuUtilization:
idlePercent: 97.05systemPercent: 0.84userPercent: 2.11cpus: 1databaseBackend: sqlitedistribution:
distribution: fedoravariant: coreosversion: "40"eventLogger: journaldfreeLocks: 2046hostname: id.mnbryant.comidMappings:
gidmap:
- container_id: 0host_id: 1000size: 1
- container_id: 1host_id: 524288size: 65536uidmap:
- container_id: 0host_id: 1000size: 1
- container_id: 1host_id: 524288size: 65536kernel: 6.8.11-300.fc40.x86_64linkmode: dynamiclogDriver: journaldmemFree: 251396096memTotal: 2049576960networkBackend: netavarknetworkBackendInfo:
backend: netavarkdns:
package: aardvark-dns-1.11.0-1.fc40.x86_64path: /usr/libexec/podman/aardvark-dnsversion: aardvark-dns 1.11.0package: netavark-1.11.0-1.fc40.x86_64path: /usr/libexec/podman/netavarkversion: netavark 1.11.0ociRuntime:
name: crunpackage: crun-1.15-1.fc40.x86_64path: /usr/bin/crunversion: |- crun version 1.15 commit: e6eacaf4034e84185fd8780ac9262bbf57082278 rundir: /run/user/1000/crun spec: 1.0.0 +SYSTEMD +SELINUX +APPARMOR +CAP +SECCOMP +EBPF +CRIU +LIBKRUN +WASM:wasmedge +YAJLos: linuxpasta:
executable: /usr/bin/pastapackage: passt-0^20240510.g7288448-1.fc40.x86_64version: | pasta 0^20240510.g7288448-1.fc40.x86_64 Copyright Red Hat GNU General Public License, version 2 or later <https://www.gnu.org/licenses/old-licenses/gpl-2.0.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law.remoteSocket:
exists: falsepath: /run/user/1000/podman/podman.sockrootlessNetworkCmd: pastasecurity:
apparmorEnabled: falsecapabilities: CAP_CHOWN,CAP_DAC_OVERRIDE,CAP_FOWNER,CAP_FSETID,CAP_KILL,CAP_NET_BIND_SERVICE,CAP_SETFCAP,CAP_SETGID,CAP_SETPCAP,CAP_SETUID,CAP_SYS_CHROOTrootless: trueseccompEnabled: trueseccompProfilePath: /usr/share/containers/seccomp.jsonselinuxEnabled: trueserviceIsRemote: falseslirp4netns:
executable: /usr/bin/slirp4netnspackage: slirp4netns-1.2.2-2.fc40.x86_64version: |- slirp4netns version 1.2.2 commit: 0ee2d87523e906518d34a6b423271e4826f71faf libslirp: 4.7.0 SLIRP_CONFIG_VERSION_MAX: 4 libseccomp: 2.5.5swapFree: 745795584swapTotal: 1024454656uptime: 171h 56m 19.00s (Approximately 7.12 days)variant: ""plugins:
authorization: nulllog:
- k8s-file
- none
- passthrough
- journaldnetwork:
- bridge
- macvlan
- ipvlanvolume:
- localregistries:
search:
- registry.fedoraproject.org
- registry.access.redhat.com
- docker.iostore:
configFile: /var/home/core/.config/containers/storage.confcontainerStore:
number: 0paused: 0running: 0stopped: 0graphDriverName: overlaygraphOptions: {}graphRoot: /var/home/core/.local/share/containers/storagegraphRootAllocated: 69188169728graphRootUsed: 5229629440graphStatus:
Backing Filesystem: xfsNative Overlay Diff: "true"Supports d_type: "true"Supports shifting: "false"Supports volatile: "true"Using metacopy: "false"imageCopyTmpDir: /var/tmpimageStore:
number: 1runRoot: /run/user/1000/containerstransientStore: falsevolumePath: /var/home/core/.local/share/containers/storage/volumesversion:
APIVersion: 5.1.0Built: 1716940800BuiltTime: Wed May 29 00:00:00 2024GitCommit: ""GoVersion: go1.22.3Os: linuxOsArch: linux/amd64Version: 5.1.0
Package info (e.g. output of rpm -q podman or apt list podman):
podman-5.1.0-1.fc40.x86_64
Playbook you run with ansible (e.g. content of playbook.yaml):
See above.
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:
Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)
/kind bug
Description
I am attempting to define multiple quadlet containers at once using the
podman_containers
module. This fails with the error:If I pass the exact same configuration to
podman_container
as part of aloop
, it works fine.Steps to reproduce the issue:
Set up a host with Podman and Quadlet capabilities (I'm using Fedora CoreOS) and add it to an inventory file under the group
caddy
.Copy the following YAML to a playbook file:
Playbook
Create podman container
succeeds whileCreate podman containers
fails with the aforementioned error.Describe the results you received:
Describe the results you expected:
Success similar to using
podman_container
withloop
.Additional information you deem important (e.g. issue happens only occasionally):
The context for this is a homelab setup where I have a single role that deploys containers in a consistent way and various other roles that pass variables to the former. This is why the example playbook is formatted the way it is with a templated variable instead of defining the container inline.
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
:Output
Package info (e.g. output of
rpm -q podman
orapt list podman
):Playbook you run with ansible (e.g. content of
playbook.yaml
):See above.
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
Output
Additional environment details (AWS, VirtualBox, physical, etc.):
This is running against Fedora CoreOS running on a VPS, but seems unspecific to the host system.
The text was updated successfully, but these errors were encountered: