Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Module to create a new domain in an existing forest #40

Closed
cobbr opened this issue Aug 19, 2020 · 6 comments · Fixed by #118
Closed

Module to create a new domain in an existing forest #40

cobbr opened this issue Aug 19, 2020 · 6 comments · Fixed by #118

Comments

@cobbr
Copy link

cobbr commented Aug 19, 2020

SUMMARY

win_domain should support creating a new domain within an existing forest. It currently only seems to support creating a new Forest.

ISSUE TYPE
  • Feature Idea
COMPONENT NAME

win_domain

ADDITIONAL INFORMATION

Solves the problem of creating a child domain within an existing forest.

Example playbook, creating a parent domain in a new forest and creating a child domain within the existing forest using a proposed within_forest parameter:

- hosts: dc01
  tasks:
  - name: Make parent domain
    win_domain:
      dns_domain_name: parentdomain.local
      safe_mode_password: Password123
    register: create_forest
  - name: Reboot upon promotion
    win_reboot:
      reboot_timeout: 1800
      post_reboot_delay: 15
    when: create_forest.reboot_required
- hosts: dc02
  tasks:
  - name: Make child domain
    win_domain:
      dns_domain_name: childdomain.parentdomain.local
      within_forest: parentdomain.local
      safe_mode_password: Password123
    register: create_domain
  - name: Reboot upon promotion
    win_reboot:
      reboot_timeout: 1800
      post_reboot_delay: 15
    when: create_domain.reboot_required
@killswitch-GUI
Copy link

I was literally just looking for this @cobbr

@joetynan
Copy link

This would be super handy if possible.

@ION28
Copy link

ION28 commented Feb 21, 2022

Agreed this would be a very helpful feature to add

@yevhenhnes
Copy link

Have there been any updates?

@jborean93 jborean93 transferred this issue from ansible-collections/ansible.windows May 29, 2023
@jborean93 jborean93 changed the title win_domain should support creating a new domain within an existing forest Module to create a new domain in an existing forest May 29, 2023
@jborean93
Copy link
Collaborator

Transferred the issue to the microsoft.ad collection as that is where domain specific modules now live.

See https://github.com/jborean93/sansldap/blob/main/tests/integration/library/win_domain_child.ps1 when creating the new module for inspiration.

@rafaelpaduan
Copy link

Transferred the issue to the microsoft.ad collection as that is where domain specific modules now live.

See https://github.com/jborean93/sansldap/blob/main/tests/integration/library/win_domain_child.ps1 when creating the new module for inspiration.

Hi there,

How can I use this script, please?

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 a pull request may close this issue.

7 participants