Assert that Scoop is installed before use

This commit is contained in:
Kenneth Benzie 2024-08-10 12:13:29 +01:00
parent 1447a04ab4
commit 3c55848bc8

View File

@ -1,4 +1,14 @@
--- ---
- name: detect if scoop is installed
win_command: where.exe scoop
changed_when: false
failed_when: false
register: scoop_result
- assert:
that: scoop_result.rc == 0
fail_msg: Scoop is not installed
- name: add extras bucket - name: add extras bucket
community.windows.win_scoop_bucket: community.windows.win_scoop_bucket:
name: extras name: extras