Skip to content

Latest commit

 

History

History
37 lines (27 loc) · 1.93 KB

README.md

File metadata and controls

37 lines (27 loc) · 1.93 KB

ccdc.compact-vm-image

Ansible Galaxy Ansible Lint Common CCDC PR Checks

An Ansible role to compact a target machine's disk for export as a virtual machine image.

What does this role do?

  • [Windows] Clean WinSXS folder and remove package files for uninstalled features
  • [Windows] Remove temporary files
  • [Windows] Download+Run+Delete UltraDefrag on all hard drives
  • [Windows] zero free space using SDelete on all hard drives

Requirements

This role requires the [community.windows](https://galaxy.ansible.com/community/windows) collection.

Role Variables

Variable Default Comments
remove_packages true Whether to remove package files for uninstalled features (Windows)
temporary_files see below A list of directories to clear out.

Default value for temporary_files

temporary_files:
  - "{{ ansible_env.LOCALAPPDATA }}\\Temp\\*"
  - "{{ ansible_env.SystemRoot }}\\Temp\\*"
  - "{{ ansible_env.SystemRoot }}\\Logs\\*"
  - "{{ ansible_env.SystemRoot }}\\Panther\\*"
  - "{{ ansible_env.SystemRoot }}\\WinSxS\\ManifestCache\\*"
  - "{{ ansible_env.SystemRoot }}\\SoftwareDistribution\\Download"