Skip to content

Commit

Permalink
WindowsPB: Add Incredibuild Dashboard Configuration Task
Browse files Browse the repository at this point in the history
  • Loading branch information
steelhead31 committed Sep 4, 2024
1 parent d89880e commit 7937949
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 0 deletions.
1 change: 1 addition & 0 deletions ansible/playbooks/AdoptOpenJDK_Windows_Playbook/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@
- IcedTea-Web # For Jenkins webstart
- WiX # For creating installers
- NSClient # Required For Nagios Monitoring
- Incredibuild # Configure Incredibuild Dashboard Service
- shortNames
- Dragonwell # Dragonwell bootstrap image
- role: Jenkins_Service_Installation # Automate installing the jenkins service
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
---
#######################################
# Incredibuild - Configuration Tasks #
#######################################

- name: Check if the ibxbuild service exists
ansible.windows.win_service_info:
name: IBXDashboard
register: service_info

- name: Stop the IBX Dashboard service if it exists
ansible.windows.win_service:
name: IBXDashboard
state: stopped
when: service_info.exists

- name: Check if incredibuild.conf file exists
win_stat:
path: 'C:\Program Files (x86)\IncrediBuild\Dashboard\Apache24\conf\incredibuild.conf'
register: incredibuild_conf_file

- name: Replace APACHE_PORT in incredibuild.conf if file exists
win_lineinfile:
path: 'C:\Program Files (x86)\IncrediBuild\Dashboard\Apache24\conf\incredibuild.conf'
regexp: '^define APACHE_PORT \d+$'
line: 'define APACHE_PORT 31000'
backup: yes
when: incredibuild_conf_file.stat.exists

- name: Stop the IBX Dashboard service if it exists
ansible.windows.win_service:
name: IBXDashboard
state: started
when: service_info.exists

0 comments on commit 7937949

Please sign in to comment.