mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
8 lines
250 B
YAML
8 lines
250 B
YAML
|
---
|
||
|
- name: Check if Format-Volume is supported
|
||
|
win_shell: if (Get-Command -Name Format-Volume -ErrorAction SilentlyContinue) { $true } else { $false }
|
||
|
register: module_present
|
||
|
|
||
|
- include: pre_test.yml
|
||
|
when: module_present.stdout | trim | bool
|