Skip to content

Commit ecab7ed

Browse files
Tahvokemmetog
authored andcommitted
Add jenkins_docker_image variable and update its name (#18)
1 parent a414b2c commit ecab7ed

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,9 @@ Role Variables
4040
--------------
4141

4242
```yml
43-
jenkins_version: "2.32.3" # The exact version of jenkins to deploy
43+
jenkins_version: "2.73.1" # The exact version of jenkins to deploy
44+
jenkins_docker_image: "jenkins/jenkins" # The docker hub image name
45+
4446
jenkins_url: "http://127.0.0.1" # The url that Jenkins will be accessible on
4547
jenkins_port: "8080" # The port that Jenkins will listen on
4648
jenkins_home: /data/jenkins # The directory on the server where the Jenkins configs will live

defaults/main.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
---
22

3-
jenkins_version: "2.32.3" # The exact version of jenkins to deploy
3+
jenkins_version: "2.73.1" # The exact version of jenkins to deploy
4+
jenkins_docker_image: "jenkins/jenkins" # The docker hub image name
5+
46
jenkins_url: "http://127.0.0.1" # The url that Jenkins will be accessible on
57
jenkins_port: "8080" # The port that Jenkins will listen on
68
jenkins_home: /data/jenkins # The directory on the server where the Jenkins configs will live

tasks/docker/install.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
- name: Container is running (with ingress port)
1212
docker_container:
1313
name: "{{ jenkins_docker_container_name }}"
14-
image: "jenkins:{{ jenkins_version }}"
14+
image: "{{ jenkins_docker_image }}:{{ jenkins_version }}"
1515
published_ports:
1616
- "{{ jenkins_port }}:8080"
1717
volumes:
@@ -24,7 +24,7 @@
2424
- name: Container is running (without ingress port)
2525
docker_container:
2626
name: "{{ jenkins_docker_container_name }}"
27-
image: "jenkins:{{ jenkins_version }}"
27+
image: "{{ jenkins_docker_image }}:{{ jenkins_version }}"
2828
expose: "8080"
2929
volumes:
3030
- "{{ jenkins_home }}:/var/jenkins_home"

0 commit comments

Comments
 (0)