forked from redhat-cop/agnosticd
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request redhat-cop#84 from sborenst/ans-tower-windows-ad
Ans tower windows ad
- Loading branch information
Showing
10 changed files
with
111 additions
and
15 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
#ad_domain_name: "{{ ec2_tag_internaldns }}" | ||
ad_domain_name: "{{activedirectory_public_dns_chomped}}" | ||
ad_safe_mode_password: "{{ windows_password | default(generated_windows_password) }}" | ||
ad_admin_user: "admin@{{ ad_domain_name}}" | ||
ad_admin_password: "{{ windows_password | default(generated_windows_password) }}" |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
--- | ||
- name: Install AD-Domain-Services feature | ||
win_feature: | ||
name: AD-Domain-Services | ||
include_management_tools: yes | ||
include_sub_features: yes | ||
|
||
|
||
- name: Setup Active Directory Controller | ||
win_domain: | ||
dns_domain_name: "{{ ad_domain_name }}" | ||
safe_mode_password: "{{ windows_password }}" | ||
register: active_directory_controllers | ||
|
||
- name: reboot once DC created | ||
win_reboot: | ||
when: active_directory_controllers.reboot_required | ||
|
||
- name: List DCs in domain | ||
win_shell: "nltest /dclist:{{ ad_domain_name }}" | ||
register: domain_list | ||
|
||
- debug: | ||
var: domain_list |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,12 @@ | ||
--- | ||
# pip install pywinrm | ||
|
||
|
||
- include: sshd.yml | ||
when: install_win_ssh | bool | ||
|
||
- win_shell: "systeminfo | findstr /C:OS" | ||
register: windows_system_info | ||
|
||
- debug: | ||
var: windows_system_info |