19 Star 54 Fork 18

乞丐亦异/ansible-jumpserver

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
bootstrap-ansible.sh 779 Bytes
一键复制 编辑 原始数据 按行查看 历史
乞丐亦异 提交于 2019-08-08 17:40 . REV: re-constuct project
#!/usr/bin/env bash
set -e
function get_pip {
echo "--------------"
echo "Installing pip"
echo "--------------"
curl -SL https://bootstrap.pypa.io/get-pip.py -o /tmp/get-pip.py || wget https://bootstrap.pypa.io/get-pip.py -O /tmp/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 -H $0' to try again."
exit 1
fi
if [[ ! -e "/tmp/get-pip.py" ]]; then
get_pip
get_ansible
else
get_ansible
fi
echo "------------------"
echo "Installation completed"
echo "------------------"
ansible --version
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Python
1
https://gitee.com/bottlelee/ansible-jumpserver.git
git@gitee.com:bottlelee/ansible-jumpserver.git
bottlelee
ansible-jumpserver
ansible-jumpserver
master

搜索帮助