Я следую этому документу для установки ansible: https://www.digitalocean.com/community/tutorials/how-to-install-and-configure-ansible-on-ubuntu-14-04
Я - попытка добавить ansible к моему списку репозиториев человечности, но это - то, что происходит:
me@mydev:~/Documents$ sudo apt-add-repository ppa:ansible/ansible
Cannot add PPA: 'ppa:~ansible/ubuntu/ansible'.
ERROR: '~ansible' user or team does not exist.
me@mydev:~/Documents$
Я также попытался просто клонировать repo (следующий этим инструкциям: http://docs.ansible.com/ansible/intro_installation.html), Но это перестало работать со следующим:
me@mydev:~/Documents/ansible$ git clone git://github.com/ansible/ansible.git --recursive
Cloning into 'ansible'...
fatal: unable to connect to github.com:
github.com[0: 192.30.252.131]: errno=Connection timed out
me@mydev:~/Documents/ansible$ ping 192.30.252.131
PING 192.30.252.131 (192.30.252.131) 56(84) bytes of data.
64 bytes from 192.30.252.131: icmp_seq=1 ttl=56 time=23.4 ms
64 bytes from 192.30.252.131: icmp_seq=2 ttl=56 time=23.5 ms
^C
--- 192.30.252.131 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1000ms
rtt min/avg/max/mdev = 23.466/23.511/23.557/0.159 ms
me@mydev:~/Documents/ansible$
Как Вы видите, я получаю ошибку из-за тайм-аута соединения. Я пытался проверить с помощью ping-запросов сервер, и это, кажется, может общаться с моим полем. Не уверенный, что еще я мог попробовать.
спасибо.
РЕДАКТИРОВАНИЕ 1
Я нахожусь позади прокси. Я выполнил эту команду для идентификации моего прокси-сервера:
me@mydev:~/Documents/ansible$ export http_proxy=http://10.20.30.40:8080
и затем протестировать, я работал:
sudo apt-get update
и это хорошо работало.
Или была проблема на панели запуска, или у Вас есть проблемы соединения. Это добавило без проблемы:
$sudo apt-add-repository ppa:ansible/ansible
[sudo] password for rinzwind:
Ansible is a radically simple IT automation platform that makes your applications and systems easier to deploy. Avoid writing scripts or custom code to deploy and update your applications— automate in a language that approaches plain English, using SSH, with no agents to install on remote systems.
http://ansible.com/
More info: https://launchpad.net/~ansible/+archive/ubuntu/ansible
Press [ENTER] to continue or ctrl-c to cancel adding it
gpg: keyring `/tmp/tmpjhg3_1oq/secring.gpg' created
gpg: keyring `/tmp/tmpjhg3_1oq/pubring.gpg' created
gpg: requesting key 7BB9C367 from hkp server keyserver.ubuntu.com
gpg: /tmp/tmpjhg3_1oq/trustdb.gpg: trustdb created
gpg: key 7BB9C367: public key "Launchpad PPA for Ansible, Inc." imported
gpg: Total number processed: 1
gpg: imported: 1 (RSA: 1)
OK
Я добавил эти -E
переключатель к моему sudo
команда, и это работало. Попробуйте:
sudo -E apt-add-repository ppa:ansible/ansible
Это перемещает (или копии) Ваши переменные среды, включая http_proxy
в sudo контекст.
У меня была та же проблема, и следующее работало на меня.
# Make sure the source list directory exists
sudo mkdir -p /etc/apt/sources.list.d
# Adde the Ansible sources.
echo "deb http://ppa.launchpad.net/ansible/ansible/ubuntu wily main" | sudo tee -a /etc/apt/sources.list.d/ansible.list
echo "deb-src http://ppa.launchpad.net/ansible/ansible/ubuntu wily main" | sudo tee -a /etc/apt/sources.list.d/ansible.list
# Install Ansible
sudo apt-get update
sudo apt-get install ansible
, Если Вы находитесь на другом выпуске, Вам, возможно, придется измениться wily
для соответствия. Проверьте в страница Ansible Launchpad для этого.
Возможно, что Ваш ПРОКСИ и Брандмауэр не позволяют Вам соединяться через SSH.
Вы могли попробовать HTTPS, что является наиболее используемым протоколом для брандмауэров и прокси:
git clone https://github.com/ansible/ansible.git --recursive