Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
module_complete
ansible-role-linux-bosch-java
Commits
f0d731b9
Commit
f0d731b9
authored
6 years ago
by
zhong.du
Browse files
Options
Download
Email Patches
Plain Diff
Add new file
parent
45dca2e9
master
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
README.md
+18
-0
README.md
with
18 additions
and
0 deletions
+18
-0
README.md
0 → 100644
+
18
-
0
View file @
f0d731b9
#### 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
```
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help