feat: add gpo_link module for managing GPO links#228
Closed
stevefulme1 wants to merge 2 commits into
Closed
Conversation
Adds a new module that wraps New-GPLink, Set-GPLink, and Remove-GPLink PowerShell cmdlets to manage Group Policy Object links declaratively. Replaces the need for win_powershell with inline Set-GPLink scripts. Supports linking/unlinking, enable/disable, enforce, and link ordering. Ref: AAP-44072 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
When gpo_guid is provided, use -Guid directly instead of trying -Name first. Prevents unnecessary error handling and makes the lookup deterministic. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
Build succeeded. ✔️ ansible-galaxy-importer SUCCESS in 4m 22s |
Contributor
|
I think this one can be closed as I created duplicate |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
microsoft.ad.gpo_linkmodule for declarative management of Group Policy Object links on AD sites, domains, and OUsNew-GPLink,Set-GPLink, andRemove-GPLinkPowerShell cmdlets from the GroupPolicy modulewin_powershellwith inlineSet-GPLinkscriptsFiles
plugins/modules/gpo_link.yml— Full DOCUMENTATION, EXAMPLES, and RETURN definitionsplugins/modules/gpo_link.ps1— PowerShell implementation usingAnsible.BasicTest plan
ansible-test sanity --dockerpassesRef: AAP-44072
🤖 Generated with Claude Code