Skip to content

Commit 436b080

Browse files
committed
fixup! ansible,jenkins: smartos18 in ci and ci-release
1 parent 83b29a9 commit 436b080

2 files changed

Lines changed: 5 additions & 4 deletions

File tree

ansible/roles/jenkins-worker/meta/main.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,4 @@
55
#
66

77
dependencies:
8-
- { 'role': 'java-base' }
98
- { 'role': 'gcc', when: os|startswith("rhel7") }

ansible/roles/jenkins-worker/tasks/main.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -252,6 +252,11 @@
252252
when: os|startswith("zos")
253253
command: "chown -R {{ server_user }} {{ home }}/{{ server_user }}/gyp"
254254

255+
# This has to be done before the `service` (and similar) commands because
256+
# java is needed to start the service
257+
- include_role:
258+
name: java-base
259+
255260
- name: enable jenkins at startup - general
256261
when: not os|startswith("zos") and not os|startswith("macos") and not os|startswith("aix")
257262
service: name=jenkins state=restarted enabled=yes
@@ -294,6 +299,3 @@
294299
when: os in needs_monit
295300
include: monit.yml
296301
static: false
297-
298-
- include_role:
299-
name: java-base

0 commit comments

Comments
 (0)