I'm trying to disable the nla function in windows using ansible need to insert the value 0 need to replace 1 what am I do wrong?
host: Test01
- name: Get NLA Authentication information ansible.windows.win_powershell: script: | if ((Get-WmiObject -class Win32_TSGeneralSetting -Namespace root\cimv2\terminalservices -Filter "TerminalName='RDP-tcp'").UserAuthenticationRequired -eq 'false') { (Set-WmiObject -class Win32_TSGeneralSetting -Namespace root\cimv2\terminalservices -Filter "TerminalName='RDP-tcp'")-SetUserAuthenticationRequired true else { $Ansible.Change = $true - debug: var: nla_auth.stdout_linesss