Assert that Scoop is installed before use
This commit is contained in:
parent
1447a04ab4
commit
3c55848bc8
@ -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
|
||||
community.windows.win_scoop_bucket:
|
||||
name: extras
|
||||
|
Loading…
x
Reference in New Issue
Block a user