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 ...@@ -3,23 +3,10 @@ An [Ansible](http://www.ansible.com) role to install Java8 JDK. This role works
## Requirements ## 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 ```yml
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: become: yes
```
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
``` ```
## Facts ## Facts
...@@ -36,17 +23,18 @@ ansible-galaxy install -r /path/to/ansible/roles/<your-role>/requirements.yml ...@@ -36,17 +23,18 @@ ansible-galaxy install -r /path/to/ansible/roles/<your-role>/requirements.yml
## Example Playbook ## Example Playbook
```yaml ```yaml
# Generic with debug # Generic with debug
- hosts: myServer - hosts: myServer
become: yes
roles: roles:
- role: java-8 - role: java-8
debug: yes debug: yes
# Enable debug, install from source # Enable debug, install from source
- hosts: myServer - hosts: myServer
become:yes
roles: roles:
- role: java-8 - role: java-8
debug: yes debug: yes
java_source: yes java_source: yes
``` ```
...@@ -5,7 +5,7 @@ galaxy_info: ...@@ -5,7 +5,7 @@ galaxy_info:
company: "CSIRT-MU" company: "CSIRT-MU"
min_ansible_version: 2.6.0 min_ansible_version: 2.6.0
platforms: platforms:
- name: CentOS - name: EL
versions: versions:
- 7 - 7
- name: Debian - 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