FAILED: argument must be an int, or have a fileno() method

Any idea why i would get this ?

fatal: [localhost] => {‘msg’: ‘FAILED: argument must be an int, or have a fileno() method.’, ‘failed’: True}

No worries, Figured out. Error is because local host key is not accepted by default

Added in ansible.cfg:

host_key_checking = False

Correct, you’re running a interactive command and there is no stdin.

We have an action item to improve the quality of this error.

–Michael