-
Feature Request
-
Resolution: Unresolved
-
Normal
-
None
-
2.4
-
False
-
-
False
Add the support of linking a GPO to microsoft.ad so to avoid using a powershell script
The target would be to replace the following sample script with an command with parameters:
--- - name: Manage GPO in Windows server 2019 hosts: all vars: ansible_connection: "ssh" ansible_shell_type: "powershell" tasks: - name: GPO Test win_powershell: script: | [CmdletBinding()] param ( [String]$EnableLink ) $el = $EnableLink $elstring = $el.ToString() Set-GPLink -Guid <GUID 1> -Target "OU=SOMETHING,DC=Something else" -LinkEnabled '$el' Set-GPLink -Guid <GUID 2> -Target "OU=SOMETHING,DC=Something else" -LinkEnabled '$el' parameters: EnableLink: "{{ gp_answer_link }}"
The possibility to assign more than one GPO is important.