Created
June 16, 2017 10:41
-
-
Save bartekj/d681cdfe14f0052c6c407287ea9167ff to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- block: | |
- name: Check and register jenkins version using initpasswordfile | |
command: > | |
java -jar /opt/jenkins-cli.jar -http -s http://{{ jenkins_hostname }}:{{ jenkins_http_port }}/ | |
-auth @/var/lib/jenkins/secrets/initialAdminAuth | |
version | |
register: jenkins_version | |
- set_fact: | |
jenkins_version: "{{ jenkins_version.stdout }}" | |
when: jenkins_version is not defined | |
- name: Disable setup wizzard | |
template: | |
src: jenkins.install.InstallUtil.lastExecVersion.j2 | |
dest: /var/lib/jenkins/jenkins.install.InstallUtil.lastExecVersion | |
owner: jenkins | |
group: jenkins |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{{ jenkins_version }} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment