containers / ansible-podman-collections

Repository for Ansible content that can include playbooks, roles, modules, and plugins for use with the Podman tool
GNU General Public License v3.0
269 stars 147 forks source link

Environments idempotency breaks probably due to equal sign #91

Closed jaudriga closed 4 years ago

jaudriga commented 4 years ago

Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)

/kind bug

Description

Assigning an a string that includes a = in environments seems to break idempotency.

For example:

GRAYLOG_MONGODB_URI: "mongodb://graylogadmin:supersecurepassword@host1.domain.com:27017,host2.domain.com:27017,host3.domain.com:27017/graylog?replicaset=rs01"

Steps to reproduce the issue:

1.

- name: Install Graylog Container
  containers.podman.podman_container:
    env:
      GRAYLOG_MONGODB_URI: "mongodb://graylogadmin:supersecurepassword@host1.domain.com:27017,host2.domain.com:27017,host3.domain.com:27017/graylog?replicaset=rs01"
    image: "graylog/graylog:3.3.2-1"
    name: graylog2

- name: Install Graylog Container Again
  containers.podman.podman_container:
    env:
      GRAYLOG_MONGODB_URI: "mongodb://graylogadmin:supersecurepassword@host1.domain.com:27017,host2.domain.com:27017,host3.domain.com:27017/graylog?replicaset=rs01"
    image: "graylog/graylog:3.3.2-1"
    name: graylog2

Describe the results you received: Container is recreated

Describe the results you expected: Container is not recreated.

Additional information you deem important (e.g. issue happens only occasionally): This seems to be the only remaining idempotency issue for my containers :) .

Output of ansible --version:

ansible 2.9.11
  config file = /home/usr/repos/audriga-update/ansible.cfg
  configured module search path = ['/home/usr/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
  ansible python module location = /usr/lib/python3.8/site-packages/ansible
  executable location = /usr/bin/ansible
  python version = 3.8.3 (default, May 17 2020, 18:15:42) [GCC 10.1.0]

Output of podman version:

Version:      2.0.3
API Version:  1
Go Version:   go1.14.2
Built:        Thu Jan  1 00:00:00 1970
OS/Arch:      linux/amd64

Output of podman info --debug:

host:
  arch: amd64
  buildahVersion: 1.15.0
  cgroupVersion: v1
  conmon:
    package: 'conmon: /usr/libexec/podman/conmon'
    path: /usr/libexec/podman/conmon
    version: 'conmon version 2.0.18, commit: '
  cpus: 2
  distribution:
    distribution: ubuntu
    version: "20.04"
  eventLogger: file
  hostname: host1
  idMappings:
    gidmap: null
    uidmap: null
  kernel: 5.4.0-1020-aws
  linkmode: dynamic
  memFree: 358780928
  memTotal: 3876061184
  ociRuntime:
    name: runc
    package: 'cri-o-runc: /usr/lib/cri-o-runc/sbin/runc'
    path: /usr/lib/cri-o-runc/sbin/runc
    version: 'runc version spec: 1.0.1-dev'
  os: linux
  remoteSocket:
    path: /run/podman/podman.sock
  rootless: false
  slirp4netns:
    executable: ""
    package: ""
    version: ""
  swapFree: 0
  swapTotal: 0
  uptime: 101h 55m 38.7s (Approximately 4.21 days)
registries:
  search:
  - docker.io
  - quay.io
store:
  configFile: /etc/containers/storage.conf
  containerStore:
    number: 2
    paused: 0
    running: 2
    stopped: 0
  graphDriverName: overlay
  graphOptions: {}
  graphRoot: /var/lib/containers/storage
  graphStatus:
    Backing Filesystem: extfs
    Native Overlay Diff: "true"
    Supports d_type: "true"
    Using metacopy: "false"
  imageStore:
    number: 11
  runRoot: /var/run/containers/storage
  volumePath: /var/lib/containers/storage/volumes
version:
  APIVersion: 1
  Built: 0
  BuiltTime: Thu Jan  1 00:00:00 1970
  GitCommit: ""
  GoVersion: go1.14.2
  OsArch: linux/amd64
  Version: 2.0.3

Package info (e.g. output of rpm -q podman or apt list podman):

Listing... Done
podman/unknown,now 2.0.3~1 amd64 [installed]
podman/unknown 2.0.3~1 arm64
podman/unknown 2.0.3~1 armhf
podman/unknown 2.0.3~1 s390x

Playbok you run with ansible (e.g. content of playbook.yaml):

See above

Command line and output of ansible run with high verbosity:

Using /home/usr/repos/repo/ansible.cfg as config file

PLAY [all] ***********************************************************************************************************************************************************************************

TASK [Gathering Facts] ***********************************************************************************************************************************************************************
ok: [host1]

PLAY [logging_servers] ***********************************************************************************************************************************************************************

TASK [Gathering Facts] ***********************************************************************************************************************************************************************
ok: [host1]

TASK [graylog : Install Graylog Container] ***************************************************************************************************************************************************
changed: [host1] => {"actions": ["started graylog2"], "changed": true, "container": {"AppArmorProfile": "containers-default-0.14.6", "Args": ["--", "/docker-entrypoint.sh", "graylog"], "BoundingCaps": ["CAP_AUDIT_WRITE", "CAP_CHOWN", "CAP_DAC_OVERRIDE", "CAP_FOWNER", "CAP_FSETID", "CAP_KILL", "CAP_MKNOD", "CAP_NET_BIND_SERVICE", "CAP_NET_RAW", "CAP_SETFCAP", "CAP_SETGID", "CAP_SETPCAP", "CAP_SETUID", "CAP_SYS_CHROOT"], "Config": {"Annotations": {"io.container.manager": "libpod", "io.kubernetes.cri-o.Created": "2020-07-27T14:12:42.29520322Z", "io.kubernetes.cri-o.TTY": "false", "io.podman.annotations.autoremove": "FALSE", "io.podman.annotations.init": "FALSE", "io.podman.annotations.privileged": "FALSE", "io.podman.annotations.publish-all": "FALSE", "org.opencontainers.image.stopSignal": "15"}, "AttachStderr": false, "AttachStdin": false, "AttachStdout": false, "Cmd": ["graylog"], "CreateCommand": ["podman", "container", "run", "--name", "graylog2", "--env", "GRAYLOG_MONGODB_URI=mongodb://graylogAdmin:supersecurepassword@host1.domain.com:27017/graylog?replicaSet=rs01", "--detach=True", "graylog/graylog:3.3.2-1"], "Domainname": "", "Entrypoint": "tini -- /docker-entrypoint.sh", "Env": ["PATH=/usr/local/openjdk-8/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin", "TERM=xterm", "container=podman", "GRAYLOG_MONGODB_URI=mongodb://graylogAdmin:supersecurepassword@host1.domain.com:27017/graylog?replicaSet=rs01", "LANG=C.UTF-8", "JAVA_HOME=/usr/local/openjdk-8", "JAVA_VERSION=8u252", "JAVA_BASE_URL=https://github.com/AdoptOpenJDK/openjdk8-upstream-binaries/releases/download/jdk8u252-b09/OpenJDK8U-jre_", "JAVA_URL_VERSION=8u252b09", "HOSTNAME=3fdb5f7e6a12", "HOME=/usr/share/graylog"], "Healthcheck": {"Interval": 10000000000, "Retries": 12, "Test": ["CMD-SHELL", "/health_check.sh"], "Timeout": 2000000000}, "Hostname": "3fdb5f7e6a12", "Image": "docker.io/graylog/graylog:3.3.2-1", "Labels": {"com.microscaling.docker.dockerfile": "/Dockerfile", "com.microscaling.license": "Apache 2.0", "maintainer": "Graylog, Inc. <hello@graylog.com>", "org.label-schema.build-date": "", "org.label-schema.description": "Official Graylog Docker image", "org.label-schema.name": "Graylog Docker Image", "org.label-schema.schema-version": "1.0", "org.label-schema.url": "https://www.graylog.org/", "org.label-schema.vcs-ref": "3bb6c813bb39fd761c323f871cbf6eaaa90be638", "org.label-schema.vcs-url": "https://github.com/Graylog2/graylog-docker", "org.label-schema.vendor": "Graylog, Inc.", "org.label-schema.version": "3.3.2"}, "OnBuild": null, "OpenStdin": false, "StdinOnce": false, "StopSignal": 15, "Tty": false, "User": "graylog", "Volumes": null, "WorkingDir": "/usr/share/graylog"}, "ConmonPidFile": "/var/run/containers/storage/overlay-containers/3fdb5f7e6a12352d2b9f0a7e1091ac94b774ae6c44a09c960387b04667b1320d/userdata/conmon.pid", "Created": "2020-07-27T14:12:42.29520322Z", "Dependencies": [], "Driver": "overlay", "EffectiveCaps": null, "ExecIDs": [], "ExitCommand": ["/usr/bin/podman", "--root", "/var/lib/containers/storage", "--runroot", "/var/run/containers/storage", "--log-level", "error", "--cgroup-manager", "systemd", "--tmpdir", "/var/run/libpod", "--runtime", "runc", "--events-backend", "file", "container", "cleanup", "3fdb5f7e6a12352d2b9f0a7e1091ac94b774ae6c44a09c960387b04667b1320d"], "GraphDriver": {"Data": {"LowerDir": "/var/lib/containers/storage/overlay/62788dad9f291973faf0c8e780610fc81db4c4bc4c0983e73029952c0ee86605/diff:/var/lib/containers/storage/overlay/2fbda6e3dc0683f3dbf314d883dc21220099b6c3f6b8dbf689bd99f95c366213/diff:/var/lib/containers/storage/overlay/630a5b42a38e7aa03e2152234e031aeb1f01839a8937e2ba33125a71651f93b0/diff:/var/lib/containers/storage/overlay/07d3fe8ebc914e1dd280c0b516cb2d86de30290bc1bf298bddc9fd6a71a14f82/diff:/var/lib/containers/storage/overlay/1febe7e589f155969c4d806d905f331bc0ce817e16421f43de444281115f99cf/diff:/var/lib/containers/storage/overlay/8bef4e70c5a8de419524114452936e4d088afff61b34b8697d2102ad2c7781dd/diff:/var/lib/containers/storage/overlay/298524bacaec3c59c01deec164df3cf660a9ad2301f3885de2cfabda22ceb85b/diff:/var/lib/containers/storage/overlay/7ae5e2823227aee633e9e9b7adc3927af89f1840d9e5c2b0086f97438cccfbd3/diff:/var/lib/containers/storage/overlay/13cb14c2acd34e45446a50af25cb05095a17624678dbafbcc9e26086547c1d74/diff", "MergedDir": "/var/lib/containers/storage/overlay/703045316d3488675d8a3e585b0af7dbe07e645b19ac1c85da020ec48697cd52/merged", "UpperDir": "/var/lib/containers/storage/overlay/703045316d3488675d8a3e585b0af7dbe07e645b19ac1c85da020ec48697cd52/diff", "WorkDir": "/var/lib/containers/storage/overlay/703045316d3488675d8a3e585b0af7dbe07e645b19ac1c85da020ec48697cd52/work"}, "Name": "overlay"}, "HostConfig": {"AutoRemove": false, "Binds": ["d3bdd42dbb86a5174bd6285e059f555102f7d4021208d17f2d6f25f8cff7ef9f:/usr/share/graylog/data:rprivate,rw,nodev,exec,nosuid,rbind"], "BlkioDeviceReadBps": null, "BlkioDeviceReadIOps": null, "BlkioDeviceWriteBps": null, "BlkioDeviceWriteIOps": null, "BlkioWeight": 0, "BlkioWeightDevice": null, "CapAdd": [], "CapDrop": [], "Cgroup": "", "CgroupMode": "host", "CgroupParent": "", "Cgroups": "default", "ConsoleSize": [0, 0], "ContainerIDFile": "", "CpuCount": 0, "CpuPercent": 0, "CpuPeriod": 0, "CpuQuota": 0, "CpuRealtimePeriod": 0, "CpuRealtimeRuntime": 0, "CpuShares": 0, "CpusetCpus": "", "CpusetMems": "", "Devices": [], "DiskQuota": 0, "Dns": [], "DnsOptions": [], "DnsSearch": [], "ExtraHosts": [], "GroupAdd": [], "IOMaximumBandwidth": 0, "IOMaximumIOps": 0, "IpcMode": "private", "Isolation": "", "KernelMemory": 0, "Links": null, "LogConfig": {"Config": null, "Type": "k8s-file"}, "Memory": 0, "MemoryReservation": 0, "MemorySwap": 0, "MemorySwappiness": 0, "NanoCpus": 0, "NetworkMode": "bridge", "OomKillDisable": false, "OomScoreAdj": 0, "PidMode": "private", "PidsLimit": 2048, "PortBindings": {}, "Privileged": false, "PublishAllPorts": false, "ReadonlyRootfs": false, "RestartPolicy": {"MaximumRetryCount": 0, "Name": ""}, "Runtime": "oci", "SecurityOpt": [], "ShmSize": 65536000, "Tmpfs": {}, "UTSMode": "private", "Ulimits": [{"Hard": 1048576, "Name": "RLIMIT_NOFILE", "Soft": 1048576}, {"Hard": 4194304, "Name": "RLIMIT_NPROC", "Soft": 4194304}], "UsernsMode": "", "VolumeDriver": "", "VolumesFrom": null}, "HostnamePath": "/var/run/containers/storage/overlay-containers/3fdb5f7e6a12352d2b9f0a7e1091ac94b774ae6c44a09c960387b04667b1320d/userdata/hostname", "HostsPath": "/var/run/containers/storage/overlay-containers/3fdb5f7e6a12352d2b9f0a7e1091ac94b774ae6c44a09c960387b04667b1320d/userdata/hosts", "Id": "3fdb5f7e6a12352d2b9f0a7e1091ac94b774ae6c44a09c960387b04667b1320d", "Image": "087b038ded46066345c929e2298053c55a1ef2fd1456c60845868fc3e8b16339", "ImageName": "docker.io/graylog/graylog:3.3.2-1", "IsInfra": false, "LogPath": "/var/lib/containers/storage/overlay-containers/3fdb5f7e6a12352d2b9f0a7e1091ac94b774ae6c44a09c960387b04667b1320d/userdata/ctr.log", "LogTag": "", "MountLabel": "", "Mounts": [{"Destination": "/usr/share/graylog/data", "Driver": "local", "Mode": "", "Name": "d3bdd42dbb86a5174bd6285e059f555102f7d4021208d17f2d6f25f8cff7ef9f", "Options": ["nodev", "exec", "nosuid", "rbind"], "Propagation": "rprivate", "RW": true, "Source": "/var/lib/containers/storage/volumes/d3bdd42dbb86a5174bd6285e059f555102f7d4021208d17f2d6f25f8cff7ef9f/_data", "Type": "volume"}], "Name": "graylog2", "Namespace": "", "NetworkSettings": {"Bridge": "", "EndpointID": "", "Gateway": "10.88.0.1", "GlobalIPv6Address": "", "GlobalIPv6PrefixLen": 0, "HairpinMode": false, "IPAddress": "10.88.0.140", "IPPrefixLen": 16, "IPv6Gateway": "", "LinkLocalIPv6Address": "", "LinkLocalIPv6PrefixLen": 0, "MacAddress": "fa:e4:4b:e5:25:b2", "Ports": {}, "SandboxID": "", "SandboxKey": "/var/run/netns/cni-458e23bd-96b7-5a37-3832-a3bb515c2084"}, "OCIConfigPath": "/var/lib/containers/storage/overlay-containers/3fdb5f7e6a12352d2b9f0a7e1091ac94b774ae6c44a09c960387b04667b1320d/userdata/config.json", "OCIRuntime": "runc", "Path": "tini", "Pod": "", "ProcessLabel": "", "ResolvConfPath": "/var/run/containers/storage/overlay-containers/3fdb5f7e6a12352d2b9f0a7e1091ac94b774ae6c44a09c960387b04667b1320d/userdata/resolv.conf", "RestartCount": 0, "Rootfs": "", "State": {"ConmonPid": 3100305, "Dead": false, "Error": "", "ExitCode": 0, "FinishedAt": "0001-01-01T00:00:00Z", "Healthcheck": {"FailingStreak": 0, "Log": null, "Status": "starting"}, "OOMKilled": false, "OciVersion": "1.0.2-dev", "Paused": false, "Pid": 3100329, "Restarting": false, "Running": true, "StartedAt": "2020-07-27T14:12:42.607092896Z", "Status": "running"}, "StaticDir": "/var/lib/containers/storage/overlay-containers/3fdb5f7e6a12352d2b9f0a7e1091ac94b774ae6c44a09c960387b04667b1320d/userdata"}, "podman_actions": ["podman run --name graylog2 --env GRAYLOG_MONGODB_URI=mongodb://graylogAdmin:supersecurepassword@host1.domain.com:27017/graylog?replicaSet=rs01 --detach=True graylog/graylog:3.3.2-1"], "stderr": "", "stderr_lines": [], "stdout": "3fdb5f7e6a12352d2b9f0a7e1091ac94b774ae6c44a09c960387b04667b1320d\n", "stdout_lines": ["3fdb5f7e6a12352d2b9f0a7e1091ac94b774ae6c44a09c960387b04667b1320d"]}

TASK [graylog : Install Graylog Container Again] *********************************************************************************************************************************************
changed: [host1] => {"actions": ["recreated graylog2"], "changed": true, "container": {"AppArmorProfile": "containers-default-0.14.6", "Args": ["--", "/docker-entrypoint.sh", "graylog"], "BoundingCaps": ["CAP_AUDIT_WRITE", "CAP_CHOWN", "CAP_DAC_OVERRIDE", "CAP_FOWNER", "CAP_FSETID", "CAP_KILL", "CAP_MKNOD", "CAP_NET_BIND_SERVICE", "CAP_NET_RAW", "CAP_SETFCAP", "CAP_SETGID", "CAP_SETPCAP", "CAP_SETUID", "CAP_SYS_CHROOT"], "Config": {"Annotations": {"io.container.manager": "libpod", "io.kubernetes.cri-o.Created": "2020-07-27T14:12:46.477088322Z", "io.kubernetes.cri-o.TTY": "false", "io.podman.annotations.autoremove": "FALSE", "io.podman.annotations.init": "FALSE", "io.podman.annotations.privileged": "FALSE", "io.podman.annotations.publish-all": "FALSE", "org.opencontainers.image.stopSignal": "15"}, "AttachStderr": false, "AttachStdin": false, "AttachStdout": false, "Cmd": ["graylog"], "CreateCommand": ["podman", "container", "run", "--name", "graylog2", "--env", "GRAYLOG_MONGODB_URI=mongodb://graylogAdmin:supersecurepassword@host1.domain.com:27017/graylog?replicaSet=rs01", "--detach=True", "graylog/graylog:3.3.2-1"], "Domainname": "", "Entrypoint": "tini -- /docker-entrypoint.sh", "Env": ["PATH=/usr/local/openjdk-8/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin", "TERM=xterm", "container=podman", "JAVA_URL_VERSION=8u252b09", "GRAYLOG_MONGODB_URI=mongodb://graylogAdmin:supersecurepassword@host1.domain.com:27017/graylog?replicaSet=rs01", "LANG=C.UTF-8", "JAVA_HOME=/usr/local/openjdk-8", "JAVA_VERSION=8u252", "JAVA_BASE_URL=https://github.com/AdoptOpenJDK/openjdk8-upstream-binaries/releases/download/jdk8u252-b09/OpenJDK8U-jre_", "HOSTNAME=16cbbefe6fe3", "HOME=/usr/share/graylog"], "Healthcheck": {"Interval": 10000000000, "Retries": 12, "Test": ["CMD-SHELL", "/health_check.sh"], "Timeout": 2000000000}, "Hostname": "16cbbefe6fe3", "Image": "docker.io/graylog/graylog:3.3.2-1", "Labels": {"com.microscaling.docker.dockerfile": "/Dockerfile", "com.microscaling.license": "Apache 2.0", "maintainer": "Graylog, Inc. <hello@graylog.com>", "org.label-schema.build-date": "", "org.label-schema.description": "Official Graylog Docker image", "org.label-schema.name": "Graylog Docker Image", "org.label-schema.schema-version": "1.0", "org.label-schema.url": "https://www.graylog.org/", "org.label-schema.vcs-ref": "3bb6c813bb39fd761c323f871cbf6eaaa90be638", "org.label-schema.vcs-url": "https://github.com/Graylog2/graylog-docker", "org.label-schema.vendor": "Graylog, Inc.", "org.label-schema.version": "3.3.2"}, "OnBuild": null, "OpenStdin": false, "StdinOnce": false, "StopSignal": 15, "Tty": false, "User": "graylog", "Volumes": null, "WorkingDir": "/usr/share/graylog"}, "ConmonPidFile": "/var/run/containers/storage/overlay-containers/16cbbefe6fe3d6dea43686ee84f1a0c96930887e9e73540da8f207d5a1554d0e/userdata/conmon.pid", "Created": "2020-07-27T14:12:46.477088322Z", "Dependencies": [], "Driver": "overlay", "EffectiveCaps": null, "ExecIDs": [], "ExitCommand": ["/usr/bin/podman", "--root", "/var/lib/containers/storage", "--runroot", "/var/run/containers/storage", "--log-level", "error", "--cgroup-manager", "systemd", "--tmpdir", "/var/run/libpod", "--runtime", "runc", "--events-backend", "file", "container", "cleanup", "16cbbefe6fe3d6dea43686ee84f1a0c96930887e9e73540da8f207d5a1554d0e"], "GraphDriver": {"Data": {"LowerDir": "/var/lib/containers/storage/overlay/62788dad9f291973faf0c8e780610fc81db4c4bc4c0983e73029952c0ee86605/diff:/var/lib/containers/storage/overlay/2fbda6e3dc0683f3dbf314d883dc21220099b6c3f6b8dbf689bd99f95c366213/diff:/var/lib/containers/storage/overlay/630a5b42a38e7aa03e2152234e031aeb1f01839a8937e2ba33125a71651f93b0/diff:/var/lib/containers/storage/overlay/07d3fe8ebc914e1dd280c0b516cb2d86de30290bc1bf298bddc9fd6a71a14f82/diff:/var/lib/containers/storage/overlay/1febe7e589f155969c4d806d905f331bc0ce817e16421f43de444281115f99cf/diff:/var/lib/containers/storage/overlay/8bef4e70c5a8de419524114452936e4d088afff61b34b8697d2102ad2c7781dd/diff:/var/lib/containers/storage/overlay/298524bacaec3c59c01deec164df3cf660a9ad2301f3885de2cfabda22ceb85b/diff:/var/lib/containers/storage/overlay/7ae5e2823227aee633e9e9b7adc3927af89f1840d9e5c2b0086f97438cccfbd3/diff:/var/lib/containers/storage/overlay/13cb14c2acd34e45446a50af25cb05095a17624678dbafbcc9e26086547c1d74/diff", "MergedDir": "/var/lib/containers/storage/overlay/15ca6dbadccdea7faa1d3ef5adc4befd38ea00d4b42a0186f703405b4c3a6390/merged", "UpperDir": "/var/lib/containers/storage/overlay/15ca6dbadccdea7faa1d3ef5adc4befd38ea00d4b42a0186f703405b4c3a6390/diff", "WorkDir": "/var/lib/containers/storage/overlay/15ca6dbadccdea7faa1d3ef5adc4befd38ea00d4b42a0186f703405b4c3a6390/work"}, "Name": "overlay"}, "HostConfig": {"AutoRemove": false, "Binds": ["bb23bc0c19542c8989aadd15c9ae4216a72f99822149f4acd779676f0ac10e8c:/usr/share/graylog/data:rprivate,rw,nodev,exec,nosuid,rbind"], "BlkioDeviceReadBps": null, "BlkioDeviceReadIOps": null, "BlkioDeviceWriteBps": null, "BlkioDeviceWriteIOps": null, "BlkioWeight": 0, "BlkioWeightDevice": null, "CapAdd": [], "CapDrop": [], "Cgroup": "", "CgroupMode": "host", "CgroupParent": "", "Cgroups": "default", "ConsoleSize": [0, 0], "ContainerIDFile": "", "CpuCount": 0, "CpuPercent": 0, "CpuPeriod": 0, "CpuQuota": 0, "CpuRealtimePeriod": 0, "CpuRealtimeRuntime": 0, "CpuShares": 0, "CpusetCpus": "", "CpusetMems": "", "Devices": [], "DiskQuota": 0, "Dns": [], "DnsOptions": [], "DnsSearch": [], "ExtraHosts": [], "GroupAdd": [], "IOMaximumBandwidth": 0, "IOMaximumIOps": 0, "IpcMode": "private", "Isolation": "", "KernelMemory": 0, "Links": null, "LogConfig": {"Config": null, "Type": "k8s-file"}, "Memory": 0, "MemoryReservation": 0, "MemorySwap": 0, "MemorySwappiness": 0, "NanoCpus": 0, "NetworkMode": "bridge", "OomKillDisable": false, "OomScoreAdj": 0, "PidMode": "private", "PidsLimit": 2048, "PortBindings": {}, "Privileged": false, "PublishAllPorts": false, "ReadonlyRootfs": false, "RestartPolicy": {"MaximumRetryCount": 0, "Name": ""}, "Runtime": "oci", "SecurityOpt": [], "ShmSize": 65536000, "Tmpfs": {}, "UTSMode": "private", "Ulimits": [{"Hard": 1048576, "Name": "RLIMIT_NOFILE", "Soft": 1048576}, {"Hard": 4194304, "Name": "RLIMIT_NPROC", "Soft": 4194304}], "UsernsMode": "", "VolumeDriver": "", "VolumesFrom": null}, "HostnamePath": "/var/run/containers/storage/overlay-containers/16cbbefe6fe3d6dea43686ee84f1a0c96930887e9e73540da8f207d5a1554d0e/userdata/hostname", "HostsPath": "/var/run/containers/storage/overlay-containers/16cbbefe6fe3d6dea43686ee84f1a0c96930887e9e73540da8f207d5a1554d0e/userdata/hosts", "Id": "16cbbefe6fe3d6dea43686ee84f1a0c96930887e9e73540da8f207d5a1554d0e", "Image": "087b038ded46066345c929e2298053c55a1ef2fd1456c60845868fc3e8b16339", "ImageName": "docker.io/graylog/graylog:3.3.2-1", "IsInfra": false, "LogPath": "/var/lib/containers/storage/overlay-containers/16cbbefe6fe3d6dea43686ee84f1a0c96930887e9e73540da8f207d5a1554d0e/userdata/ctr.log", "LogTag": "", "MountLabel": "", "Mounts": [{"Destination": "/usr/share/graylog/data", "Driver": "local", "Mode": "", "Name": "bb23bc0c19542c8989aadd15c9ae4216a72f99822149f4acd779676f0ac10e8c", "Options": ["nodev", "exec", "nosuid", "rbind"], "Propagation": "rprivate", "RW": true, "Source": "/var/lib/containers/storage/volumes/bb23bc0c19542c8989aadd15c9ae4216a72f99822149f4acd779676f0ac10e8c/_data", "Type": "volume"}], "Name": "graylog2", "Namespace": "", "NetworkSettings": {"Bridge": "", "EndpointID": "", "Gateway": "10.88.0.1", "GlobalIPv6Address": "", "GlobalIPv6PrefixLen": 0, "HairpinMode": false, "IPAddress": "10.88.0.141", "IPPrefixLen": 16, "IPv6Gateway": "", "LinkLocalIPv6Address": "", "LinkLocalIPv6PrefixLen": 0, "MacAddress": "92:44:89:35:c0:a9", "Ports": {}, "SandboxID": "", "SandboxKey": "/var/run/netns/cni-9c1da729-a366-72c0-3ec8-d87604fa7101"}, "OCIConfigPath": "/var/lib/containers/storage/overlay-containers/16cbbefe6fe3d6dea43686ee84f1a0c96930887e9e73540da8f207d5a1554d0e/userdata/config.json", "OCIRuntime": "runc", "Path": "tini", "Pod": "", "ProcessLabel": "", "ResolvConfPath": "/var/run/containers/storage/overlay-containers/16cbbefe6fe3d6dea43686ee84f1a0c96930887e9e73540da8f207d5a1554d0e/userdata/resolv.conf", "RestartCount": 0, "Rootfs": "", "State": {"ConmonPid": 3100814, "Dead": false, "Error": "", "ExitCode": 0, "FinishedAt": "0001-01-01T00:00:00Z", "Healthcheck": {"FailingStreak": 0, "Log": null, "Status": "starting"}, "OOMKilled": false, "OciVersion": "1.0.2-dev", "Paused": false, "Pid": 3100826, "Restarting": false, "Running": true, "StartedAt": "2020-07-27T14:12:46.735201065Z", "Status": "running"}, "StaticDir": "/var/lib/containers/storage/overlay-containers/16cbbefe6fe3d6dea43686ee84f1a0c96930887e9e73540da8f207d5a1554d0e/userdata"}, "podman_actions": ["podman rm -f graylog2", "podman run --name graylog2 --env GRAYLOG_MONGODB_URI=mongodb://graylogAdmin:supersecurepassword@host1.domain.com:27017/graylog?replicaSet=rs01 --detach=True graylog/graylog:3.3.2-1"], "stderr": "", "stderr_lines": [], "stdout": "16cbbefe6fe3d6dea43686ee84f1a0c96930887e9e73540da8f207d5a1554d0e\n", "stdout_lines": ["16cbbefe6fe3d6dea43686ee84f1a0c96930887e9e73540da8f207d5a1554d0e"]}

PLAY RECAP ***********************************************************************************************************************************************************************************
host1               : ok=2    changed=2    unreachable=0    failed=0    skipped=0    rescued=0    ignored=0   

Additional environment details (AWS, VirtualBox, physical, etc.): AWS

sshnaidm commented 4 years ago

@jaudriga please try https://github.com/containers/ansible-podman-collections/pull/92 if it solves your issue

jaudriga commented 4 years ago

@sshnaidm Yes. That fixes it:

$ ansible-playbook site.yml
...
TASK [graylog : Install Graylog Container] ****************************************************************************************************************************************************
ok: [host1]
...