The input device is not a TTY

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

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.

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?