Skip to content

Commit

Permalink
Reinstate incredibuild task prefixes and add tags
Browse files Browse the repository at this point in the history
Signed-off-by: Stewart X Addison <[email protected]>
  • Loading branch information
sxa committed Nov 28, 2024
1 parent e946cf1 commit 5aead3f
Showing 1 changed file with 8 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,23 @@
#######################################

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

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

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

- name: Replace APACHE_PORT in incredibuild.conf if file exists
win_lineinfile:
Expand All @@ -26,9 +29,11 @@
line: 'define APACHE_PORT 31000'
backup: yes
when: incredibuild_conf_file.stat.exists
tags: incredibuild

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

0 comments on commit 5aead3f

Please sign in to comment.