To install Ansible on my RH machine I had to get out from a proxy.
First, I modify .gitconfig
Mine looks like this behind the corporate firewall:
[http]
proxy = http://proxy.example.com:80
[https]
proxy = http://proxy.example.com:80
Or:
git config --global http.proxy http://proxy.example.com:80
git config --global https.proxy http://proxy.example.com:80
It does the same thing.
I also had to add to my .bashrc file:
export http_proxy=http://proxy.example.com:80
export https_proxy=http://proxy.example.com:80
Strange that I had to add it to two places.
I also found I couldn't do it like the Ansible documentation said. I had to do:
git clone https://github.com/ansible/ansible.git --recursive
cd ansible/
git submodule update --init --recursive
yum -y install python-devel
make
make install
That got me a good environment. Next I created /etc/profile.d/ansible:
export http_proxy=http://proxy.example.com:80
export https_proxy=http://proxy.example.com:80
PATH=/usr/local/ansible/bin:$PATH
PYTHONPATH=/usr/local/ansible/lib:$PYTHONPATH
MANPATH=/usr/local/ansible/docs/man:$MANPATH
That seemed to work for me!