Skip to content

Commit 25b8fd3

Browse files
author
Gustavo Muniz do Carmo
committed
first commit
0 parents  commit 25b8fd3

File tree

8 files changed

+82
-0
lines changed

8 files changed

+82
-0
lines changed

README.md

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
Role Name
2+
=========
3+
4+
A brief description of the role goes here.
5+
6+
Requirements
7+
------------
8+
9+
Any pre-requisites that may not be covered by Ansible itself or the role should be mentioned here. For instance, if the role uses the EC2 module, it may be a good idea to mention in this section that the boto package is required.
10+
11+
Role Variables
12+
--------------
13+
14+
A description of the settable variables for this role should go here, including any variables that are in defaults/main.yml, vars/main.yml, and any variables that can/should be set via parameters to the role. Any variables that are read from other roles and/or the global scope (ie. hostvars, group vars, etc.) should be mentioned here as well.
15+
16+
Dependencies
17+
------------
18+
19+
A list of other roles hosted on Galaxy should go here, plus any details in regards to parameters that may need to be set for other roles, or variables that are used from other roles.
20+
21+
Example Playbook
22+
----------------
23+
24+
Including an example of how to use your role (for instance, with variables passed in as parameters) is always nice for users too:
25+
26+
- hosts: servers
27+
roles:
28+
- { role: username.rolename, x: 42 }
29+
30+
License
31+
-------
32+
33+
BSD
34+
35+
Author Information
36+
------------------
37+
38+
An optional section for the role authors to include contact information, or a website (HTML is not allowed).

defaults/main.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
---
2+
# defaults file for oracle-java8

handlers/main.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
---
2+
# handlers file for oracle-java8

meta/main.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
galaxy_info:
2+
author: Gustavo Muniz do Carmo
3+
description: Role to install Oracle Java 8
4+
company: codeyourinfra.today
5+
license: MIT
6+
7+
min_ansible_version: 1.2
8+
9+
platforms:
10+
- name: Ubuntu
11+
versions:
12+
- bionic
13+
- xenial
14+
15+
galaxy_tags:
16+
- oracle
17+
- java
18+
- jdk

tasks/main.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
---
2+
- name: Add the Oracle Java repository into sources list
3+
apt_repository:
4+
repo: 'ppa:webupd8team/java'
5+
- name: Accept the Oracle License
6+
debconf:
7+
name: oracle-java8-installer
8+
question: shared/accepted-oracle-license-v1-1
9+
value: 'true'
10+
vtype: select
11+
- name: Install latest Oracle JDK 1.8.0 update
12+
apt:
13+
name: oracle-java8-installer

tests/inventory

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
localhost
2+

tests/test.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
- hosts: localhost
3+
remote_user: root
4+
roles:
5+
- oracle-java8

vars/main.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
---
2+
# vars file for oracle-java8

0 commit comments

Comments
 (0)