Hello,
Iβm using bedrock/ansible (trellis) to manage my deploys. Iβve encountered a problem that puzzles me completely. Here is why:
I have bedrock/ansible projects. This is my directory structure:
project-1.local/
βββ ansible/
βββ site/
project-2.local/
βββ ansible/
βββ site/
Both projects are configured exactly the same. Both get deployed to the staging environment using a public git repositories. if I run ./deploy.sh staging project-1.net
in the ansible
directory of project-1, all is good, the site is deployed correctly - all tasks executed.
Howver, running ./deploy.sh staging project-2.net
in the ansible
directory of project-2 gives this error message:
failed: [my.staging.host.ip] => {βcmdβ: β/usr/bin/git ls-remote origin -h refs/heads/masterβ, βfailedβ: true, βrcβ: 128}
stderr: ERROR: Repository not found.
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
msg: ERROR: Repository not found.
fatal: Could not read from remote repository.
Iβve been trying to find possible problems with ssh key forwarding, but this appears to be working fine. project-1.net
and project-2.net
are configured exactly the same - these directories exist on the staging host. The projects themselves are also there as I was able to deploy both sites before.
I do not see any apparent reason why anssible would deploy the first project but not the second one.
Iβd really appreciate your advice on how I could debug it and get to the core of the problem.
`