From aae3e152093becab266fb37a660b4b3f19d3c3e4 Mon Sep 17 00:00:00 2001 From: binary Date: Wed, 20 Jan 2021 00:10:54 +0100 Subject: Add openbsd jenkins version check --- roles/jenkins/tasks/main.yml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'roles/jenkins/tasks') diff --git a/roles/jenkins/tasks/main.yml b/roles/jenkins/tasks/main.yml index cac34e6..530889d 100644 --- a/roles/jenkins/tasks/main.yml +++ b/roles/jenkins/tasks/main.yml @@ -4,10 +4,13 @@ --- -- name: install jenkins - package: - name: jenkins - state: present +- name: install jenkins for OpenBSD + package: name="jenkins-{{ jenkins_version }}" state=present + when: ansible_distribution == "OpenBSD" + +- name: install generic jenkins package + package: name="jenkins" state=present + when: ansible_distribution != "OpenBSD" - name: ensure jenkins group exists group: -- cgit v1.2.3