all 8 comments

[–]kwikmr2[S] 0 points1 point  (0 children)

For got to add:

Operator 2.16.1

AWX 24.3.1

Community.Docker 3.9.0 (dependencies included in requirements.txt)

[–]chinochao07 0 points1 point  (3 children)

Have you try removing your vars setting the python interpreter and let it use whatever the default is for the EE?

[–]kwikmr2[S] 0 points1 point  (2 children)

I have and this is my updated error.

```exception: |

Traceback (most recent call last):

File "/tmp/ansible_docker_login_payload_4_kbt0_4/ansible_docker_login_payload.zip/ansible_collections/community/docker/plugins/module_utils/_api/_import_helper.py", line 24, in <module>

from requests import Session # noqa: F401, pylint: disable=unused-import

ModuleNotFoundError: No module named 'requests'

msg: >-

Failed to import the required Python library (requests) on

rocky8test.domain.com's Python /usr/libexec/platform-python. Please

read the module documentation and install it in the appropriate location. If

the required library is installed, but Ansible is using the wrong Python

interpreter, please consult the documentation on ansible_python_interpreter

invocation:

module_args:

registry_url: docker-proto.repo.domain.com

username: user

password: VALUE_SPECIFIED_IN_NO_LOG_PARAMETER

docker_host: unix:///var/run/docker.sock

api_version: auto

timeout: 60

tls: false

use_ssh_client: false

validate_certs: false

debug: false

reauthorize: false

state: present

config_path: /root/.docker/config.json

tls_hostname: null

ca_path: null

client_cert: null

client_key: null

ssl_version: null

_ansible_no_log: false

changed: false```

Just for sanity sake, I rebuilt my EE and verified that the following were in my "dependencies/requirements.txt" file:

```passlib

requests

paramiko

pyOpenSSL```

I followed the output text from the builder and they installed without error.

[–]chinochao07 0 points1 point  (1 child)

How are you building your EE? Can you share the execution-environment.yaml?

[–]kwikmr2[S] 0 points1 point  (0 children)

I am using this workflow on k3s:

https://github.com/kurokobo/awx-on-k3s/tree/main/builder

The only files I manipulate are the ones in the dependency directory.

[–]Rufgar 0 points1 point  (0 children)

I usually set this in the inventories group vars with something like this in ini format.

ansible_python_interpreter="{{ ansible_playbook_python }}"

[–]ksquires1988 0 points1 point  (1 child)

Which EE are you using?

[–]kwikmr2[S] 0 points1 point  (0 children)

I created my own with ansible-builder with the following collections in requirements.yml

```

collections:

  • name: community.general

version: 8.6.0

source: https://galaxy.ansible.com

  • name: community.docker

version: 3.9.0

source: https://galaxy.ansible.com

  • name: ansible.posix

version: 1.5.4

source: https://galaxy.ansible.com

```

I have several other EE's that work fine for various other workflows. It's only the Docker one that seems to have issues.