Debian Codegraph @

ansible_collections/community/windows/tests/integration/targets/win_format/tasks/main.yml

raw
1 ---
2 - name: Check if Format-Volume is supported
3 ansible.windows.win_shell: if (Get-Command -Name Format-Volume -ErrorAction SilentlyContinue) { $true } else { $false }
4 register: module_present
5
6 - include_tasks: pre_test.yml
7 when: module_present.stdout | trim | bool