aboutsummaryrefslogtreecommitdiffstats
path: root/roles/jenkins
diff options
context:
space:
mode:
authorbinary <me@rgoncalves.se>2021-01-20 00:10:54 +0100
committerbinary <me@rgoncalves.se>2021-01-20 00:10:54 +0100
commitaae3e152093becab266fb37a660b4b3f19d3c3e4 (patch)
tree8eef4a86f866d0448ef92155ced54f29425c800b /roles/jenkins
parent5f35f2bbe2f5c02bb573d9aea9d9de2b53877014 (diff)
downloadinfrastructure-aae3e152093becab266fb37a660b4b3f19d3c3e4.tar.gz
Add openbsd jenkins version check
Diffstat (limited to 'roles/jenkins')
-rw-r--r--roles/jenkins/tasks/main.yml11
-rw-r--r--roles/jenkins/vars/main.yml5
2 files changed, 10 insertions, 6 deletions
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:
diff --git a/roles/jenkins/vars/main.yml b/roles/jenkins/vars/main.yml
index 7596f1d..b468fa8 100644
--- a/roles/jenkins/vars/main.yml
+++ b/roles/jenkins/vars/main.yml
@@ -4,5 +4,6 @@
---
-jenkins_group: jenkins
-jenkins_user: jenkins
+jenkins_group: _jenkins
+jenkins_user: _jenkins
+jenkins_version: "2.258"
remember that computers suck.