Hi all,
I am trying to use Ansible on a Linux master server that is completely locked down(no internet access at all)
So I have downloaded a tarball from releases.ansible.com, and looked at “running form source” to get instructions to continue, without success.
the page suggests the following command:
source ./hacking/env-setup
but neither ./hacking nor env-setup exists
I recently used Ansible successfully to install Java & JBOSS on several servers but this was on a server that was not locked down. I would really appreciate it if you could help me out here…
Hubrecht
I think this section is intended for the use when you clone the repo
via git.
Trying to install a rpm/deb file would probably pull in lots of
dependencies, which might be hard to solve without internet access.
But I guess this is true for running ansible from git, there would be
some dependencies to fulfil.
Johannes
Sorry for the necromancy, but I’m running into this same problem – shouldn’t the zip just be a zip-up of the same thing you get when you do a git clone? Obviously it’s not, because I can see the hacking directory and the env-setup file on the web directory on https://github.com/ansible/ansible, but it makes me wonder what else is missing.
I am not completely bereft of options, I am only port-blocked from performing the actual git checkout, so I can still download rpms and run them, so I was just looking for a quick “recipe” of what steps to take. So far, my best find has been the recipe that someone put together for cygwin. I’ll follow that unless someone else has something better.
Please and thank you in advance for any assistance.
Hii
What exactly do you mean by being "port-blocked from performing the
actual git checkout"??
My company is very pro-active keeping ports blocked, so I should say, “I suspect…”
When I perform:git clone git@github.com:ansible/ansible.git --recursive
I get:
Cloning into ‘ansible’…
ssh: connect to host github.com port 22: Connection timed out
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
When I perform:
git clone https://github.com/ansile/ansible.git --recursive
I get prompted for my github.com username and password, and then fatal ‘repository not found’.
When I perform:
git clone git://github.com/ansile/ansible.git --recursive
It sits for a while, then returns fatal:
unable to connect to github.com:
github.com[0: 192.30.253.113]: errno=Connection timed out
github.com[1: 192.30.253.112]: errno=Connection timed out
This last one is what makes me think it’s port-blocked.
Is there something I’m doing wrong? I’ve never successfully git cloned from github from work before, so I didn’t spend a lot of time on it, but if you think this is a viable solution, I will be happy to try harder. (And/or take my laptop home tonight, and try cloning from there.)
Thanks for your assistance.
My company is very pro-active keeping ports blocked, so I should say, "I
suspect..."
When I perform:
git clone git@github.com:ansible/ansible.git --recursive
I get:
Cloning into 'ansible'...
ssh: connect to host github.com port 22: Connection timed out
fatal: Could not read from remote repository.
Indeed, SSH access seems to be blocked.
Please make sure you have the correct access rights
and the repository exists.
When I perform:
git clone https://github.com/ansile/ansible.git --recursive
I get prompted for my github.com username and password, and then fatal
'repository not found'.
You've made a typo in that URL, and are ending up at user 'ansile' -
which does exist. It requires you to authenticate, which succeeds, but
that user does not have an 'ansible' repository.
So far it all makes sense.
Since you *do* get the authentication prompt, HTTPS does work.
And if you use the right URL you should be fine:
git clone https://github.com/ansible/ansible.git --recursive
It's a pity that you can't use SSH, but the ansible repository is
public, so you don't have to authenticate, and hence put in or store
credentials.
Oh for the love of…
Thank you. Sorry for any inconvenience.