# The input device is not a TTY

**URL:** <https://forum.ansible.com/t/the-input-device-is-not-a-tty/38413>\
**Category:** Ansible Project\
**Created:** [September 7, 2023, 10:40am UTC](https://forum.ansible.com/t/the-input-device-is-not-a-tty/38413 "2023-09-07T10:40:51Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jojebo1](https://avatars.discourse-cdn.com/v4/letter/j/bbce88/32.png) [@jojebo1](https://forum.ansible.com/u/jojebo1)\
**Post date:** [September 7, 2023, 10:40am UTC](https://forum.ansible.com/t/the-input-device-is-not-a-tty/38413/1 "2023-09-07T10:40:51Z")

</div>

Hi everyone,

I’m fairly new to ansible and I stumbled across a problem which I’m unable to solve.

**Problem**  
It occurs when I try to run a playbook that should execute two commands (proprietary sw).  
The error is either “the input device is not a TTY” or it just hangs with python indend errors depending on the -t or -tt flag for ssh.

**Hosts file**

[SERVERS] server  
ansible\_host=\*\* dest ip \*\*  
[SERVERS:vars]

ansible\_user = test2 ansible\_port = 22  
ansible\_private\_key\_file = ~/.ssh/id\_rsa  
ansible\_ssh\_common\_args=‘-tt -o ServerAliveInterval=30 -o ServerAliveCountMax=60’

**Playbook**

---

<div class="post-metadata">

**Author:** ![jojebo1](https://avatars.discourse-cdn.com/v4/letter/j/bbce88/32.png) [@jojebo1](https://forum.ansible.com/u/jojebo1)\
**Post date:** [September 13, 2023, 12:10pm UTC](https://forum.ansible.com/t/the-input-device-is-not-a-tty/38413/2 "2023-09-13T12:10:37Z")

</div>

I removed the ssh arguments → “the input device is not a TTY”  
I set usetty to true → “the input device is not a TTY”  
ssh -t test2@\* dest ip \*\* “source toolrc && tool” → works  
So it is basically possible to run the script via ssh with the -t argument.

---

<div class="post-metadata">

**Author:** ![jojebo1](https://avatars.discourse-cdn.com/v4/letter/j/bbce88/32.png) [@jojebo1](https://forum.ansible.com/u/jojebo1)\
**Post date:** [September 18, 2023, 2:30pm UTC](https://forum.ansible.com/t/the-input-device-is-not-a-tty/38413/3 "2023-09-18T14:30:53Z")

</div>

If I delete these two lines

async: 1200  
poll: 10

it works! But I would like to start the task on all of the servers at once which needs async, right?
