Skip to content

Commit

Permalink
Revert "Test Using VPC / Old Ansible"
Browse files Browse the repository at this point in the history
This reverts commit 717dbd8.
  • Loading branch information
steelhead31 committed Sep 4, 2024
1 parent 3b25b81 commit 8f44939
Showing 1 changed file with 6 additions and 25 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,22 +8,11 @@
name: IBXDashboard
register: service_info

## Only available in ansible 2.10 or later
# - name: Stop the IBX Dashboard service if it exists
# ansible.windows.win_service:
# name: IBXDashboard
# state: stopped
# when: service_info.exists

## This Section Is For Ansible 2 < 2.10
- name: Gather Facts About Windows Services
win_service_facts:

- name: Ensure IBXDashboard Service Is stopped
win_service:
- name: Stop the IBX Dashboard service if it exists
ansible.windows.win_service:
name: IBXDashboard
state: stopped
when: "'IBXDashboard' in win_services"
when: service_info.exists

- name: Check if incredibuild.conf file exists
win_stat:
Expand All @@ -38,16 +27,8 @@
backup: yes
when: incredibuild_conf_file.stat.exists

## Only available in ansible 2.10 or later
# - name: Start the IBX Dashboard service if it exists
# ansible.windows.win_service:
# name: IBXDashboard
# state: started
# when: service_info.exists

## This Section Is For Ansible 2 < 2.10
- name: Ensure IBXDashboard Service Is Started
win_service:
- name: Stop the IBX Dashboard service if it exists
ansible.windows.win_service:
name: IBXDashboard
state: started
when: "'IBXDashboard' in win_services"
when: service_info.exists

0 comments on commit 8f44939

Please sign in to comment.