Skip to content

Destroy Windows AD Domain - #392

Merged
IPvSean merged 7 commits into
ansible:mainfrom
zjleblanc:issue/380-destroy-windows-ad-domain
Nov 10, 2026
Merged

IPvSean merged 7 commits into
ansible:mainfrom
zjleblanc:issue/380-destroy-windows-ad-domain

Conversation

@zjleblanc

Copy link
Copy Markdown
Contributor

Closes #380

Add Destroy Workflow for Active Directory Domain Setup (matching Cloud Stack pattern)

  • migrated aws JTs to common setup (Delete Keypair, VPC)
  • added note in AD LDAP inventory not to sync before running Setup (inventory has to exist to apply workflow config-as-code)

@IPvSean IPvSean left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks solid overall — mirrors the Destroy Cloud Stack pattern well, the Kerberos/AD LDAP credential reset is the right AD-specific piece, and moving Delete Keypair / Delete VPC into common makes sense for reuse. Pre-commit is green.

A few doc/registration gaps before merge:

  1. Pages registration — please add a docs/_data/demos.yml entry for Destroy Active Directory Domain (Cloud Destroy has one). Without it the demo won’t show on the site.
  2. windows/README.md — Workflows table still only lists Setup; worth adding Destroy there too.
  3. Setup doc drift — removing the Setup survey aws_public_key prompt is fine (Create Keypair already has APD Machine Credential and can derive the key), but windows-setup-ad-domain.md still lists Keypair Public Key as a required survey prompt and Prerequisites still call out needing an SSH public key. Those should be synced.

Nits (non-blocking):

  • The DISCLAIMER inventory / source_vars note is a bit unconventional as an operator signal; a clearer description might communicate better, but it’s harmless.
  • Same shared aws-test-vpc / aws-test-key as Cloud Stack — Destroy AD will tear those down if both demos were used in-region (pre-existing pattern, just worth knowing).

Happy to approve once the demos.yml + README + setup-doc survey sync land.

@zjleblanc

Copy link
Copy Markdown
Contributor Author

Looks solid overall — mirrors the Destroy Cloud Stack pattern well, the Kerberos/AD LDAP credential reset is the right AD-specific piece, and moving Delete Keypair / Delete VPC into common makes sense for reuse. Pre-commit is green.

A few doc/registration gaps before merge:

  1. Pages registration — please add a docs/_data/demos.yml entry for Destroy Active Directory Domain (Cloud Destroy has one). Without it the demo won’t show on the site.
  2. windows/README.md — Workflows table still only lists Setup; worth adding Destroy there too.
  3. Setup doc drift — removing the Setup survey aws_public_key prompt is fine (Create Keypair already has APD Machine Credential and can derive the key), but windows-setup-ad-domain.md still lists Keypair Public Key as a required survey prompt and Prerequisites still call out needing an SSH public key. Those should be synced.

Nits (non-blocking):

  • The DISCLAIMER inventory / source_vars note is a bit unconventional as an operator signal; a clearer description might communicate better, but it’s harmless.
  • Same shared aws-test-vpc / aws-test-key as Cloud Stack — Destroy AD will tear those down if both demos were used in-region (pre-existing pattern, just worth knowing).

Happy to approve once the demos.yml + README + setup-doc survey sync land.

All comments addressed @IPvSean ✅

@zjleblanc

Copy link
Copy Markdown
Contributor Author

Verified Cloud Stack Setup/Destroy ran successfully, no regression from migration of JTs.

@IPvSean IPvSean left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Re-reviewed after the docs follow-up — LGTM, approve.

Prior gaps are fixed:

  • docs/_data/demos.yml entry for Destroy Active Directory Domain
  • Destroy linked from windows/README.md / docs index
  • Setup survey/docs synced (pubkey removed; APD Machine Credential called out)

Workflow matches the Destroy Cloud Stack pattern (parallel VM deletes + converge inventory → delete keypair/VPC), and the Kerberos/AD LDAP reset playbook returns credentials to the same placeholders as windows/setup.yml. Pre-commit green; Zach confirmed Cloud Stack Setup/Destroy still works after the JT move to common.

Non-blocking nits (same as before, fine to land as-is):

  • DISCLAIMER inventory/source_vars note is unconventional but harmless
  • Shared aws-test-vpc / aws-test-key with Cloud Stack — Destroy AD will tear those down if both demos ran in-region (pre-existing pattern)

@IPvSean IPvSean left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@IPvSean
IPvSean merged commit 49553bd into ansible:main Nov 10, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add "Destroy Windows Active Directory Domain" workflow

2 participants