tasks:
-
name: Install AD Services feature
win_feature:
name: AD-Domain-Services
include_management_tools: yes
include_sub_features: yes
state: present
register: result
-
name: Create new forest
win_domain:
dns_domain_name: team1.local
safe_mode_password: team1@123
register: result
-
name: Reboot after creation
win_reboot:
msg: "Server config in progress; rebooting..."
when: result.reboot_required
fgh
ReplyDelete