6.10 Software软件部署
最后更新于:2022-04-02 07:45:52
## JDK部署
```
# YUM部署openjdk-1.8.0版本
ansible-playbook -i hosts/jdk_hosts software/openjdk/openjdk.yml --tags install_jdk
ansible-playbook -i hosts/jdk_hosts software/openjdk/openjdk.yml --tags uninstall_jdk
```
## Libzip
```
# libzip 1.5(含)之后的版本需要先安装cmake
# 支持 1.3.2、1.5.2、1.7.3
ansible-playbook -i hosts/software_hosts software/cmake/cmake.yml -e "camek_version=3.0.2"
ansible-playbook -i hosts/software_hosts software/libzip/libzip.yml -e "libzip_version=1.5.2"
``````
## cmake
```
# 支持3.0.2、3.19.8、3.20.0
ansible-playbook -i hosts/software_hosts software/cmake/cmake.yml -e "camek_version=3.0.2"
```
## ruby
```
# 支持2.5.9、2.6.7、2.7.3、3.0.1
ansible-playbook -i hosts/software_hosts software/ruby/ruby.yml -e "ruby_version=3.0.1"
```
## gemsoft
```
# 用来安装相关软件,如Redis
# 需要先安装ruby
```
```
# redis-gem支持 3.3.5(Redis 3.2使用)、4.0.3、4.1.4、4.2.5
ansible-playbook -i hosts/software_hosts software/gemsoft/gemsoft.yml -e "gem_soft_name=redis gem_soft_version=4.2.5"
```
### go
```
# 支持1.11.13,1.13.15,1.15.11,1.16.3
# 安装
ansible-playbook -i hosts/software_hosts software/go/go.yml -e '{"go_version":"1.15.11"}' --tags install
# 删除
ansible-playbook -i hosts/software_hosts software/go/go.yml -e '{"go_version":"1.15.11"}' --tags clean_install
```
';