1 Star 0 Fork 44

chengfey / ansible-elk-deploy

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
bootstrap-ansible.sh 680 Bytes
一键复制 编辑 原始数据 按行查看 历史
Haibin Lee 提交于 2019-01-09 16:00 . WIP: docs
#!/usr/bin/env bash
set -e
function get_pip {
echo "--------------"
echo "Installing pip"
echo "--------------"
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py || wget https://bootstrap.pypa.io/get-pip.py -O get-pip.py
python /tmp/get-pip.py || python3 /tmp/get-pip.py
}
function get_ansible {
echo "------------------"
echo "Installing ansible"
echo "------------------"
pip install -i https://pypi.doubanio.com/simple ansible
}
if [[ $USER != "root" ]]; then
echo "Current user is not 'root'."
echo "Run 'sudo $0' to try again."
exit 1
fi
if [[ ! -e "/tmp/get-pip.py" ]]; then
get_pip
get_ansible
else
get_ansible
fi
ansible --version
Python
1
https://gitee.com/chengfey/ansible-elk-deploy.git
git@gitee.com:chengfey/ansible-elk-deploy.git
chengfey
ansible-elk-deploy
ansible-elk-deploy
master

搜索帮助

53164aa7 5694891 3bd8fe86 5694891