Commit 47cf0cc0 by nadeemshahzad

openjdk installed with upgrade/removed from list

parent 5a081f3b
......@@ -34,7 +34,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","openjdk-8-jre-headless"]
GO_SERVER_APT_PKGS: ["apache2-utils"]
# gocd-oauth-login
GO_SERVER_OAUTH_LOGIN_VERSION: "1.2"
......
......@@ -45,6 +45,12 @@
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 }}"
......@@ -53,12 +59,6 @@
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