http_proxy=http://foo%40acme.com:password@proxy.acme.com:3128 https_proxy=http://foo%40acme.com:password@proxy.acme.com:3128 https_ftp=http://foo%40acme.com:password@proxy.acme.com:3128 export http_proxy export https_proxy export ftp_proxy
$ git clone https://github.com/transcode-open/apt-cyg.git $ install apt-cyg/apt-cyg /usr/local/bin
$ apt-cyg update $ apt-cyg install xxx
$ apt-cyg install python-setuptools $ apt-cyg install gcc-core make python-devel libffi-devel openssl-devel $ easy_install-2.7 pip $ pip install ansible
$ ansible-playbook site.yml -l redmine ... fatal: [redmine]: UNREACHABLE! => {"changed": false, "msg": "Failed to connect to the host via ssh.", "unreachable": true} ... redmine : ok=0 changed=0 unreachable=1 failed=0
OpenSSH ではなく、paramiko (Python の SSHクライアント) を使うとOK
$ ansible-playbook -c paramiko site.yml -l redmine
/.bash_profile
... http_proxy=http://foo%40acme.com:password@proxy.acme.com:3128 https_proxy=http://foo%40acme.com:password@proxy.acme.com:3128 https_ftp=http://foo%40acme.com:password@proxy.acme.com:3128 export http_proxy export https_proxy export ftp_proxy alias grep='grep --color' alias ansible-playbook='ansible-playbook -c paramiko'