Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
shade-belisar opened this issue Apr 14, 2024 · 0 comments
Labels
documentation Improvements or additions to documentation

Comments

@shade-belisar
Copy link

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 shade-belisar added documentation Improvements or additions to documentation new New issues and PRs to triaged labels Apr 14, 2024
@shatakshiiii shatakshiiii added new New issues and PRs to triaged and removed new New issues and PRs to triaged labels Apr 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
Status: No status
Development

No branches or pull requests

2 participants