Skip to content

Commit

Permalink
update ansible to use microsoft AD instead of deprecated API
Browse files Browse the repository at this point in the history
  • Loading branch information
Marshall-Hallenbeck committed Apr 3, 2024
1 parent 53eb70f commit 8fcb54a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
log_path: C:\dns_log.txt

- name: "Add workstation to {{member_domain}}"
win_domain_membership:
microsoft.windows.win_domain_membership:
dns_domain_name: "{{member_domain}}"
domain_admin_user: "Administrator@{{member_domain}}"
domain_admin_password: "{{domain_password}}"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
when: check_domain.changed

- name: Ensure the server is a domain controller
win_domain_controller:
microsoft.windows.win_domain_controller:
dns_domain_name: "{{domain}}"
domain_admin_user: "Administrator@{{domain}}"
domain_admin_password: "{{domain_password}}"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
log_path: C:\dns_log.txt

- name: Promote the server to aditionnal DC
win_domain_controller:
microsoft.windows.win_domain_controller:
dns_domain_name: "{{domain_name}}"
domain_admin_user: "Administrator@{{domain_name}}"
domain_admin_password: "{{domain_password}}"
Expand Down

0 comments on commit 8fcb54a

Please sign in to comment.