安裝腳本在GitHub:https://github.com/ghl1024/ansible-offline-install
兩種安裝方式在生產環境的CentOS7系統中已驗證通過,適用於內網離線或者外網在線安裝,前提是系統自帶或者干凈的python環境。
😄安裝方式一
cd /tmp
git clone https://github.com/ghl1024/ansible-offline-install.git
cd ansible-offline-install/ansible
sh install.sh
😃安裝方式二
cd /tmp
wget -c https://github.com/ghl1024/ansible-offline-install/releases/download/V1/ansible-offline-install.tar.gz
tar xf ansible-offline-install.tar.gz
cd ansible
sh install.sh