我为我糟糕的英语感到抱歉。
我被困在将MariaDB服务器安装到迷途机器上。我有以下几点:
- name: install mariadb addons
apt: pkg=software-properties-common state=latest
sudo: yes
- name: add mariadb key
apt_key: url=http://keyserver.ubuntu.com/pks/lookup?op=get&search=0xcbcb082a1bb943db
sudo: yes
- name: add mariadb repository
apt_repository: repo='deb http://mirror.timeweb.ru/mariadb/repo/10.0/ubuntu precise main'
sudo: yes
notify:
- update repositories
在vagrant provision
之后,我得到以下内容:
TASK: [install mariadb addons] ************************************************
ok: [192.168.0.3]
TASK: [add mariadb key] *******************************************************
ok: [192.168.0.3]
TASK: [add mariadb repository] ************************************************
failed: [192.168.0.3] => {"failed": true}
msg: Could not import python modules: pycurl. Please install python-pycurl package.
FATAL: all hosts have already failed -- aborting
我做错什么了?如何在不安装python软件包的情况下安装mariaDB?
发布于 2014-01-10 23:24:23
将以下内容添加到您的ansible剧本文件的顶部
- name: install python-pycurl
apt: pkg=python-pycurl state=latest
sudo: yes
或者如果您安装了python-pip
- name: install curl-config
apt: pkg=libcurl4-openssl-dev state=latest
sudo: yes
- name: install python-pycurl
pip: name=pycurl state=latest
sudo: yes
https://stackoverflow.com/questions/21012163
复制相似问题