# Could not read from remote repository

**URL:** <https://forum.ansible.com/t/could-not-read-from-remote-repository/38000>\
**Category:** Ansible Project\
**Tags:** ansible-project\
**Created:** [May 16, 2023, 7:30pm UTC](https://forum.ansible.com/t/could-not-read-from-remote-repository/38000 "2023-05-16T19:30:27Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![dnmvisser](https://avatars.discourse-cdn.com/v4/letter/d/8e8cbc/32.png) [@dnmvisser](https://forum.ansible.com/u/dnmvisser)\
**Post date:** [May 16, 2023, 7:30pm UTC](https://forum.ansible.com/t/could-not-read-from-remote-repository/38000/1 "2023-05-16T19:30:27Z")

</div>

> Sorry, posting again  
> inventory.yaml:
> 
> webservers:  
> hosts:  
> dev-stage:  
> ansible\_ssh\_host: [a96872.ftp.mchost.ru](http://a96872.ftp.mchost.ru)  
> ansible\_user: a96872\_izg  
> study\_deploy\_to: /home/httpd/vhosts/host.example/httpdocs  
> ansible\_remote\_tmp: /home/httpd/vhosts/host.example/httpdocs  
> vars:  
> git\_repo: ‘git@github.com:VitaliyT825/study.git’  
> project\_name: study
> 
> ## deploy\_dev-stage.yaml:
> 
> name: DEV-STAGE deployment script  
> hosts: dev-stage  
> remote\_user: a96872\_izg  
> become\_user: a96872\_izg  
> gather\_facts: false
> 
> roles:
> 
> - cbrunnkvist.ansistrano-symfony-deploy
> 
> vars:
> 
> # custom
> 
> deploy\_from\_branch: ‘{{ branch }}’  
> release\_console\_path: ‘{{ ansistrano\_release\_path.stdout }}/{{symfony\_console\_path}}’
> 
> # ansistrano
> 
> ansistrano\_git\_repo: ‘{{ git\_repo }}’  
> ansistrano\_deploy\_via: git  
> ansistrano\_current\_dir: current  
> ansistrano\_allow\_anonymous\_stats: false  
> ansistrano\_deploy\_to: ‘{{ study\_deploy\_to }}’  
> ansistrano\_git\_branch: ‘{{ deploy\_from\_branch }}’  
> ansistrano\_keep\_releases: 5  
> ansistrano\_shared\_paths:
> 
> - ‘var/log’
> - ‘public/images’
> - ‘storage’
> - ‘parameters’  
> ansistrano\_shared\_files:
> - ‘.env.local’
> 
> # symfony deployer
> 
> symfony\_env: dev  
> symfony\_php\_path: php  
> symfony\_run\_composer: true  
> symfony\_composer\_options: ‘-v -n -o --prefer-dist --no-progress’  
> symfony\_console\_path: ‘bin/console’  
> symfony\_run\_assetic\_dump: false  
> symfony\_run\_doctrine\_migrations: true  
> symfony\_doctrine\_options: ‘–no-interaction’  
> symfony\_composer\_version: 2.0.9
> 
> ERROR:  
> TASK [ansistrano.deploy : ANSISTRANO | GIT | Update remote repository] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
> fatal: [dev-stage]: FAILED! =\> {“changed”: false, “cmd”: “/usr/bin/git ls-remote [git@github.com](mailto:git@github.com):VitaliyT825/study.git -h refs/heads/master”, “msg”: "ssh: connect to host [github.com](http://github.com) port 777: Connection timed out

I’m pretty sure GitHub doesn’t offer something on port 777, so it makes sense that you get that timeout.

But I also don’t see that number mentioned anywhere in the code that you provided.  
So without more context it’s not possible to tell where it came from.  
It must be something local on your side though.  
Could it be some custom setting in your gitconfig…?

> **(attachments)**
>
> ![Screenshot 2023-05-15 at 23.58.22.png](https://us1.discourse-cdn.com/ansible/original/2X/5/56b8d85544d743e59551f64270cd5550b4eebf30.png)  
> ![Screenshot 2023-05-15 at 23.59.59.png](https://us1.discourse-cdn.com/ansible/original/2X/c/cea3569604430c4c8651e547b71c656d2a7845ed.png)  
> ![Screenshot 2023-05-16 at 00.00.41.png](https://us1.discourse-cdn.com/ansible/original/2X/3/3475035fcc37555dedf39ad045d2276881909b3f.png)

---

<div class="post-metadata">

**Author:** ![Kosala\_Atapattu1](https://avatars.discourse-cdn.com/v4/letter/k/7feea3/32.png) [@Kosala\_Atapattu1](https://forum.ansible.com/u/Kosala_Atapattu1)\
**Post date:** [May 16, 2023, 11:17pm UTC](https://forum.ansible.com/t/could-not-read-from-remote-repository/38000/2 "2023-05-16T23:17:43Z")

</div>

The only thing I see doing any actual work is the role in your playbook, which you 've not listed. Can you add in the tasks/main.yml from the role?

> **(attachments)**
>
> ![Screenshot 2023-05-15 at 23.58.22.png](https://us1.discourse-cdn.com/ansible/original/2X/5/56b8d85544d743e59551f64270cd5550b4eebf30.png)  
> ![Screenshot 2023-05-15 at 23.59.59.png](https://us1.discourse-cdn.com/ansible/original/2X/c/cea3569604430c4c8651e547b71c656d2a7845ed.png)  
> ![Screenshot 2023-05-16 at 00.00.41.png](https://us1.discourse-cdn.com/ansible/original/2X/3/3475035fcc37555dedf39ad045d2276881909b3f.png)
