cmoa install ansible v2

This commit is contained in:
havelight-ee
2023-02-16 21:40:53 +09:00
parent a98fc02ef7
commit 60c7d6a5b8
50 changed files with 53 additions and 109 deletions

26
00_ansible_setup/setup_local.sh Executable file
View File

@@ -0,0 +1,26 @@
#!/bin/bash
if [ -z "$BASH_VERSION" ]; then exec bash "$0" "$@"; exit; fi
rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-*
rpm_list=`find . -name "*.rpm"`
for rpm in ${rpm_list}
do
if [[ ${rpm} == *"01_python3"* ]]; then
echo "rpm -ivh ${rpm} --nodeps"
rpm -ivh ${rpm} --nodeps
else
echo "rpm -Uvh ${rpm}"
rpm -Uvh ${rpm}
fi
done
pip3 install --upgrade --no-index -f ./02-pip/pip-20.3-py2.py3-none-any.whl pip==20.3
pip3 install --no-index -f ./03_ansible ansible
pip3 install --no-index -f ./04_kubernetes kubernetes
pip3 install --no-index -f ./05_minio Minio
tar xvfBpz ./06_kubectl/kubectl.tar.gz -C /usr/bin/