Skip to content

Commit

Permalink
Fix ansible service info
Browse files Browse the repository at this point in the history
  • Loading branch information
steelhead31 committed Sep 4, 2024
1 parent 717dbd8 commit 501d1ba
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,15 @@

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

Check failure on line 19 in ansible/playbooks/AdoptOpenJDK_Windows_Playbook/roles/Incredibuild/tasks/main.yml

View workflow job for this annotation

GitHub Actions / Ansible Lint

syntax-check[unknown-module]

couldn't resolve module/action 'win_service_info'. This often indicates a misspelling, missing collection, or incorrect module path.
win_service_facts:
win_service_info:
name: IBXDashboard
register: IBXDashboard_service_info

- name: Ensure IBXDashboard Service Is stopped
win_service:
name: IBXDashboard
state: stopped
when: "'IBXDashboard' in win_services"
when: IBXDashboard_service_info.services | length > 0

- name: Check if incredibuild.conf file exists
win_stat:
Expand All @@ -50,4 +52,4 @@
win_service:
name: IBXDashboard
state: started
when: "'IBXDashboard' in win_services"
when: IBXDashboard_service_info.services | length > 0

0 comments on commit 501d1ba

Please sign in to comment.