# Error: Argument must be an int,or have a file() method

**URL:** <https://forum.ansible.com/t/error-argument-must-be-an-int-or-have-a-file-method/26890>\
**Category:** Ansible Project\
**Created:** [March 3, 2018, 7:11am UTC](https://forum.ansible.com/t/error-argument-must-be-an-int-or-have-a-file-method/26890 "2018-03-03T07:11:21Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ramesh1](https://avatars.discourse-cdn.com/v4/letter/r/6bbea6/32.png) [@ramesh1](https://forum.ansible.com/u/ramesh1)\
**Post date:** [March 3, 2018, 7:11am UTC](https://forum.ansible.com/t/error-argument-must-be-an-int-or-have-a-file-method/26890/1 "2018-03-03T07:11:21Z")

</div>

Hi Team,  
I am new to ansible  
please help on this

here I am getting error like this :

178.128.22.23 | UNREACHABLE! =\> {  
“changed”: false,  
“msg”: “Failed to connect to the host via ssh.”,  
“unreachable”: true  
}

My steps involved:  
my ip: 198.17.22.24  
I have generated ssh key in gitbash and then added my key into the another system(linux)  
command used in gitbash $ssh-cppoy-id 178.128.22.23

docker compose file:

version: “3.0”  
kind: “compose”

meta:  
name: “Ansible”  
family: “info”  
app: “Ansible”  
version: “1.0”  
org-id: “0.0.0”

services:  
service: bubble:5000/int/info/ansible/service:v1.0  
forecePullimage: true  
command: echo -e '[db]\n178.128.22.23\n \> /etc/ansible/hosts ; ansible all -m “ping”

ports:

- mapping: 1166:1166  
name: management  
routing: path

deployment:  
dev:  
service:  
environment:  
DEBUG:true  
instances: 1  
cpu: 0.5  
mem: 256

then execute the command : $infy run update compose.yaml (office personal commands)  
in kibana logs error:

178.128.22.23 | UNREACHABLE! =\> {  
“changed”: false,  
“msg”: “Failed to connect to the host via ssh.”,  
“unreachable”: true  
}

my environments very different :  
using : **infy cli** we have to deploy app and run our own commands and check the status in https:infy.com.app.ansible(ansible not installed in my system,we have to deploy and run in server)  
if the app is succesfully installed and run then we have to check the logs in kibana.

Thanks in advance
