Could not read from remote repository

Sorry, posting again
inventory.yaml:

webservers:
hosts:
dev-stage:
ansible_ssh_host: 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:VitaliyT825/study.git -h refs/heads/master”, “msg”: "ssh: connect to host 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)



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)