Saturday, 13 July 2019

Ansible playbook to Configure Active directory on Windows server




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



1 comment:

Git

1 git add ↳ It lets you add changes from the working directory into the staging area 2 git commit ↳ It lets you save a snapshot of currently...