Commit f0d731b9 authored by zhong.du's avatar zhong.du
Browse files

Add new file

parent 45dca2e9
No related merge requests found
Showing with 18 additions and 0 deletions
+18 -0
README.md 0 → 100644
#### 1.功能简介
为RedHat/CentOS和Debian/Ubuntu linux服务器安装Java。
#### 2.参数描述
| key | value | describe |
| ------ | ------ | ------ |
| java_packages | java-1.8.0-openjdk | 设置要安装的Java版本 |
| java_home | "" | 如果设置,角色将把全局环境变量JAVA_HOME设置为这个值 |
##### deploy.yml:
``` ansible
- hosts: server
roles:
- geerlingguy.java
```
#### 4.运行
``` shell
ansible-galaxy install -r dependencies.yml -p ./roles #下载ansible roles
ansible-playbook -i host deploy.yml --extra-vars "appname= tomcat1 " #执行ansible roles
```
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment