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