From fc4a4e6e768ed753159c079899f8f167e6bc7406 Mon Sep 17 00:00:00 2001
From: Martin Machac <machacm@ics.muni.cz>
Date: Thu, 8 Nov 2018 11:27:27 +0100
Subject: [PATCH] Simplify README, update meta/main.yml

---
 README.md     | 24 ++++++------------------
 meta/main.yml |  2 +-
 2 files changed, 7 insertions(+), 19 deletions(-)

diff --git a/README.md b/README.md
index 5859a74..1a5f88f 100644
--- a/README.md
+++ b/README.md
@@ -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
 ```
-
diff --git a/meta/main.yml b/meta/main.yml
index d0aad5c..50fdea5 100644
--- a/meta/main.yml
+++ b/meta/main.yml
@@ -5,7 +5,7 @@ galaxy_info:
   company: "CSIRT-MU"
   min_ansible_version: 2.6.0
   platforms:
-   - name: CentOS
+   - name: EL
      versions:
       - 7     
    - name: Debian
-- 
GitLab