Ansible.builtin.pause failing Inappropriate ioctl for device

When I try to run a playbook with ansible.builtin.pause through docker run -t with github runner workflow. It returns error with
{"msg": "[Errno 25] Inappropriate ioctl for device"}
I did search that I need to pass in -t for Docker, but that doesn’t seem to work. is there some way to bypass pause tty or something?

My ansible version is

$ ansible --version
ansible [core 2.18.4]
  config file = /etc/ansible/ansible.cfg
  configured module search path = ['/ws1dev/collections/content/plugins/modules']
  ansible python module location = /usr/share/venv/lib/python3.12/site-packages/ansible
  ansible collection location = /root/.ansible/collections:/ws1dev/collections:/usr/share/ansible/collections:/ws1dev/collections/content/collections
  executable location = /usr/share/venv/bin/ansible
  python version = 3.12.11 (main, Jun 25 2025, 00:00:00) [GCC 11.5.0 20240719 (Red Hat 11.5.0-5)] (/usr/share/venv/bin/python)
  jinja version = 3.1.5
  libyaml = True