ansible-navigator icon indicating copy to clipboard operation
ansible-navigator copied to clipboard

How do I turn off the requirement for ansible-navigator being run in a tty?

Open shade-belisar opened this issue 10 months ago • 0 comments

ISSUE TYPE
  • Doc issue
SUMMARY

I'm not quite certain if this is a documentation issue or a bug. I'm running ansible-navigator inside gitlab-ci in a docker container based on the following Dockerfile

FROM docker
RUN apk update
RUN apk add python3 python3-dev py3-pip gcc libc-dev oniguruma-dev
ENV VIRTUAL_ENV=/opt/venv
RUN python3 -m venv $VIRTUAL_ENV
ENV PATH="$VIRTUAL_ENV/bin:$PATH"
COPY requirements.txt .
RUN pip3 install -r requirements.txt

However, when I try to execute ansible-navigator, I get this error message:

the input device is not a TTY
Please review the log for errors.

I cannot figure out how to disable the requirement for the input device being a TTY. I have seen plenty of stackoverflow posts on this error message, all suggesting I drop the -it flag from my docker run command. The issue is: I'm not setting that flag. I presume ansible-navigator is. But I can't find anything in the documentation on this. I though that -m stdout should fix it, because it disables interactive mode, but that does not seem to be the case.

I would request that the documentation be updated to make it clear how to disable the TTY-requirement. Alternatively, if this is a bug, I would gladly open a bug report and help with the investigation.

shade-belisar avatar Apr 14 '24 20:04 shade-belisar