fatal: [localhost]: FAILED! => {"changed": false, "msg": "Can't run container ignition_container", "stderr": "Error: short-name resolution enforced but cannot prompt without a TTY\n", "stderr_lines": ["Error: short-name resolution enforced but cannot prompt without a TTY"], "stdout": "", "stdout_lines": []}
Describe the results you received:
fatal: [localhost]: FAILED! => {"changed": false, "msg": "Can't run container ignition_container", "stderr": "Error: short-name resolution enforced but cannot prompt without a TTY\n", "stderr_lines": ["Error: short-name resolution enforced but cannot prompt without a TTY"], "stdout": "", "stdout_lines": []}
Describe the results you expected:
I expected that a container would be created from the image, and for the container to process the cmd_args and then produce a correctly provisioned microsd-card
Additional information you deem important (e.g. issue happens only occasionally):
Using become, the container is installed in the root account. But become is necessary for privileged flag to work so that the microsd card can be mounted inside container.
When the command is run inside a terminal, it works without issue, and doesn't complain about short-name resolution.
When the command is run using ansible.builtin.shell, the command runs fine.
Version of the containers.podman collection:Either git commit if installed from git: git show --summaryOr version from ansible-galaxy if installed from galaxy: ansible-galaxy collection list | grep containers.podman
I don't have ansible-galaxy available. I installed ansible using pip
pip show ansible
Name: ansible
Version: 7.4.0
Summary: Radically simple IT automation
Home-page: https://ansible.com/
Author: Ansible, Inc.
Author-email: info@ansible.com
License: GPLv3+
Location: /var/home/admin/src/motioncore/motioncore_venv/lib64/python3.11/site-packages
Requires: ansible-core
Required-by:
Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)
/kind bug
Description
Steps to reproduce the issue:
Describe the results you received:
Describe the results you expected: I expected that a container would be created from the image, and for the container to process the cmd_args and then produce a correctly provisioned microsd-card
Additional information you deem important (e.g. issue happens only occasionally): Using become, the container is installed in the root account. But become is necessary for privileged flag to work so that the microsd card can be mounted inside container. When the command is run inside a terminal, it works without issue, and doesn't complain about short-name resolution. When the command is run using ansible.builtin.shell, the command runs fine.
Version of the
containers.podman
collection: Either git commit if installed from git:git show --summary
Or version fromansible-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 fedora silverblue 37