Skip to content
Snippets Groups Projects
Commit fc4a4e6e authored by (Service) CSIRT's avatar (Service) CSIRT
Browse files

Simplify README, update meta/main.yml

parent 38fc6b79
No related branches found
No related tags found
1 merge request!4Resolve "Simplify README, add CentOS platform"
......@@ -3,23 +3,10 @@ An [Ansible](http://www.ansible.com) role to install Java8 JDK. This role works
## Requirements
- Ansible >= 2.X
This role requires root access, so you either need to specify `become` directive as a global or while invoking the role.
## Using the role in another role as a depedency
If you would like to use this role as a depedency for another one, create a file `/path/to/ansible/roles/<your-role>/meta/main.yml` with the following lines:
```
dependencies:
- src: java-8
```
and a file `/path/to/ansible/roles/<your-role>/requirements.yml` with the following lines:
```
- name: java-8
src: git+https://gitlab.ics.muni.cz/CSIRT-MU-public/ansible-roles/java-8
```
Also, you will have to install this role via Ansible-galaxy:
```
ansible-galaxy install -r /path/to/ansible/roles/<your-role>/requirements.yml
```yml
become: yes
```
## Facts
......@@ -36,17 +23,18 @@ ansible-galaxy install -r /path/to/ansible/roles/<your-role>/requirements.yml
## Example Playbook
```yaml
# Generic with debug
# Generic with debug
- hosts: myServer
become: yes
roles:
- role: java-8
debug: yes
# Enable debug, install from source
- hosts: myServer
become:yes
roles:
- role: java-8
debug: yes
java_source: yes
```
......@@ -5,7 +5,7 @@ galaxy_info:
company: "CSIRT-MU"
min_ansible_version: 2.6.0
platforms:
- name: CentOS
- name: EL
versions:
- 7
- name: Debian
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment