Commit bf165da5 by nadeemshahzad

removed oracldjdk dependency

parent 47cf0cc0
......@@ -18,12 +18,6 @@ GO_SERVER_HOME: "/var/lib/go-server"
GO_SERVER_CONF_HOME: "/etc/go"
GO_SERVER_PLUGIN_DIR: "{{ GO_SERVER_HOME }}/plugins/external/"
# Java version settings
GO_SERVER_ORACLEJDK_VERSION: "8u131"
GO_SERVER_ORACLEJDK_BASE: "jdk1.8.0_131"
GO_SERVER_ORACLEJDK_BUILD: "b11"
GO_SERVER_ORACLEJDK_LINK: "/usr/lib/jvm/java-8-oracle"
#Openjdk PPA Apt source
openjdk_apt_source: "ppa:openjdk-r/ppa"
......@@ -34,7 +28,7 @@ GO_SERVER_JAVA_HOME: "{{ GO_SERVER_ORACLEJDK_LINK }}"
GO_SERVER_APT_SOURCE: "deb https://download.gocd.io /"
GO_SERVER_APT_KEY_URL: "https://download.gocd.io/GOCD-GPG-KEY.asc"
GO_SERVER_APT_NAME: "go-server"
GO_SERVER_APT_PKGS: ["apache2-utils"]
GO_SERVER_APT_PKGS: ["apache2-utils","openjdk-8-jdk"]
# gocd-oauth-login
GO_SERVER_OAUTH_LOGIN_VERSION: "1.2"
......
......@@ -18,11 +18,3 @@
# my_role_var0: "foo"
# my_role_var1: "bar"
# }
dependencies:
- role: oraclejdk
tags: java
oraclejdk_version: "{{ GO_SERVER_ORACLEJDK_VERSION }}"
oraclejdk_base: "{{ GO_SERVER_ORACLEJDK_BASE }}"
oraclejdk_build: "{{ GO_SERVER_ORACLEJDK_BUILD }}"
oraclejdk_link: "{{ GO_SERVER_ORACLEJDK_LINK }}"
......@@ -45,12 +45,6 @@
repo: "{{ openjdk_apt_source }}"
state: present
- name: install go-server using apt-get
apt:
name: "{{ GO_SERVER_APT_NAME }}={{ GO_SERVER_VERSION }}"
update_cache: yes
state: present
- name: install other needed system packages
apt:
name: "{{ item }}"
......@@ -59,6 +53,12 @@
cache_valid_time: 3600
with_items: "{{ GO_SERVER_APT_PKGS }}"
- name: install go-server using apt-get
apt:
name: "{{ GO_SERVER_APT_NAME }}={{ GO_SERVER_VERSION }}"
update_cache: yes
state: present
- name: create go-server plugin directory
file:
path: "{{ GO_SERVER_PLUGIN_DIR }}"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment