As a final step to getting our Active Directory environment up and running, we’re going to add one last playbook that ensures a few additional services are up and running.
Create a file in the playbooks
directory named configure-domain-controllers.yaml
, and paste in the following contents:
---
- name: Apply base config to all domain controllers
hosts:
- all
tasks:
- name: Ensure SSDP/UPnP are started
ansible.windows.win_service:
name: "{{ item }}"
state: started
start_mode: auto
loop:
- SSDPSRV
- upnphost
If you’ve been using the web interface to create files, then your new code already ready to start consuming. If you’re using an IDE, be sure to commit and push your code, so it can be pulled by Controller later on.
Navigation
Previous Exercise | Next Exercise |