Uploaded image for project: 'Ansible Automation Platform RFEs'
  1. Ansible Automation Platform RFEs
  2. AAPRFE-930

Support for linking GPO in the microsoft.ad collection

XMLWordPrintable

    • False
    • Hide

      None

      Show
      None
    • 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.

            mferrari@redhat.com Massimo Ferrari
            rhn-support-mcanu Matteo Canu
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated: