September 2018
Beginner to intermediate
214 pages
5h 53m
English
This module is kind of a cleanup and organization of the system. It is primarily aimed at desktop Windows hosts, but some tasks can be used for servers.
This playbook will start by showing how to remote startup a Windows host that has been shut down. We then wait until it has properly powered on to do a disk defragmentation. After that, we perform some registry optimization tasks and finish by joining the host to a domain:
---- name: Windows system configuration and optimisation hosts: windows gather_facts: yes vars: macaddress: "{{ (ansible_interfaces|first).macaddress|default (mac|default('')) }}" tasks: - name: Send magic Wake-On-Lan packet to turn on individual systems win_wakeonlan: mac: ...Read now
Unlock full access