devops/source/ansible.sh
2024-11-21 19:46:49 +08:00

10 lines
518 B
Bash

yum -y install python3 git
echo "export LANG=en_US.UTF-8" >> /etc/profile
echo "export PATH=$PATH:/usr/local/ansible-2.2.1.0/build/scripts-3.6:/usr/local/go/bin" >> /etc/profile
echo "export GOPATH=$HOME/go" >> /etc/profile
source /etc/profile
pip3 install --upgrade pip -i https://pypi.tuna.tsinghua.edu.cn/simple --user
pip3 install ansible -i https://pypi.tuna.tsinghua.edu.cn/simple --user
curl -fsSL https://rpm.nodesource.com/setup_16.x | bash -
yum install nodejs -y
yum clean all && rm -rf /var/cache/yum