sh 脚本在ubuntu上安装git和ansible

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了sh 脚本在ubuntu上安装git和ansible相关的知识,希望对你有一定的参考价值。

sudo apt-get install -y software-properties-common
sudo apt-add-repository -y ppa:ansible/ansible
sudo apt-get update
sudo apt-get install -y ansible git
ssh-keygen -q -N ""
cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys
git clone --recursive -b dev https://github.com/drosofff/ansible-artimed.git
cd ansible-artimed/galaxy/
hostIP=`hostname -I | cut -d " " -f 1`
INSTALL_HOSTNAME=$hostIP ansible-playbook -i "localhost," galaxy.yml -vvvv

以上是关于sh 脚本在ubuntu上安装git和ansible的主要内容,如果未能解决你的问题,请参考以下文章

sh 在Ubuntu上安装和设置NO-IP动态IP更新程序引擎的脚本

在 EC2 实例上使用用户数据脚本运行 ansible-playbook

sh 安装zsh git,比安装zprezto并配置它,并将它们更改为powerlevel9k,在ubuntu上完成

sh 在Ubuntu Linux 14.04 LTS上安装ThingWorx Platform 7.4的安装脚本

使用ansible批量修改ubuntu系统密码

sh 使用git和pip将ansible升级到最新版本