Debian Codegraph @

test/integration/targets/ansible-doc/library/test_win_module.ps1

raw
1 #!powershell
2 # Copyright: (c) Ansible Project
3 # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
4
5 #AnsibleRequires -CSharpUtil Ansible.Basic
6
7 $spec = @{
8 options = @{
9 hello = @{ type = 'str'; required = $true }
10 }
11 supports_check_mode = $true
12 }
13
14 $module = [Ansible.Basic.AnsibleModule]::Create($args, $spec)
15
16 $hello = $module.Params.hello
17
18 $module.Result.msg = $hello
19 $module.Result.changed = $false
20
21 $module.ExitJson()