-
-
Notifications
You must be signed in to change notification settings - Fork 101
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
WindowsPB: Add Incredibuild Dashboard Configuration Task
- Loading branch information
1 parent
d89880e
commit 7937949
Showing
2 changed files
with
35 additions
and
0 deletions.
There are no files selected for viewing
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
34 changes: 34 additions & 0 deletions
34
ansible/playbooks/AdoptOpenJDK_Windows_Playbook/roles/Incredibuild/tasks/main.yml
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
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 |