{"id":39257195,"url":"https://github.com/ccdc-opensource/ansible-role-compact-vm-image","last_synced_at":"2026-01-18T00:18:25.295Z","repository":{"id":116525342,"uuid":"522995509","full_name":"ccdc-opensource/ansible-role-compact-vm-image","owner":"ccdc-opensource","description":null,"archived":false,"fork":false,"pushed_at":"2025-10-31T14:25:13.000Z","size":98,"stargazers_count":0,"open_issues_count":2,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-10-31T16:06:57.114Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ccdc-opensource.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2022-08-09T14:58:16.000Z","updated_at":"2025-10-31T14:24:53.000Z","dependencies_parsed_at":null,"dependency_job_id":"afb31197-cc5f-4bee-a899-2ec3b9429fb7","html_url":"https://github.com/ccdc-opensource/ansible-role-compact-vm-image","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ccdc-opensource/ansible-role-compact-vm-image","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ccdc-opensource%2Fansible-role-compact-vm-image","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ccdc-opensource%2Fansible-role-compact-vm-image/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ccdc-opensource%2Fansible-role-compact-vm-image/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ccdc-opensource%2Fansible-role-compact-vm-image/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ccdc-opensource","download_url":"https://codeload.github.com/ccdc-opensource/ansible-role-compact-vm-image/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ccdc-opensource%2Fansible-role-compact-vm-image/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28523630,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-17T23:53:28.710Z","status":"ssl_error","status_checked_at":"2026-01-17T23:52:20.131Z","response_time":85,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-01-18T00:18:24.572Z","updated_at":"2026-01-18T00:18:25.279Z","avatar_url":"https://github.com/ccdc-opensource.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# ccdc.compact-vm-image\n\n[![Ansible Galaxy](https://img.shields.io/badge/ansible--galaxy-ccdc.compact_vm_image-blue.svg)](https://galaxy.ansible.com/ccdc/compact_vm_image/)\n[![Ansible Lint](https://github.com/ccdc-opensource/ansible-role-compact-vm-image/actions/workflows/lint-ansible-role.yml/badge.svg)](https://github.com/ccdc-opensource/ansible-role-compact-vm-image/actions/workflows/lint-ansible-role.yml)\n[![Common CCDC PR Checks](https://github.com/ccdc-opensource/ansible-role-compact-vm-image/actions/workflows/common_ccdc_status_checks.yml/badge.svg)](https://github.com/ccdc-opensource/ansible-role-compact-vm-image/actions/workflows/common_ccdc_status_checks.yml)\n\nAn Ansible role to compact a target machine's disk for export as a virtual machine image.\n\n## What does this role do?\n\n- [Windows] Clean WinSXS folder and remove package files for uninstalled features\n- [Windows] Remove temporary files\n- [Windows] Download+Run+Delete UltraDefrag on all hard drives\n- [Windows] zero free space using SDelete on all hard drives\n\n## Requirements\n\nThis role requires the `[community.windows](https://galaxy.ansible.com/community/windows)` collection.\n\n## Role Variables\n\n| Variable          | Default   | Comments                                                           |\n|-------------------|-----------|--------------------------------------------------------------------|\n| `remove_packages` | `true`    | Whether to remove package files for uninstalled features (Windows) |\n| `temporary_files` | see below | A list of directories to clear out.                                |\n\n### Default value for `temporary_files`\n\n```yaml\ntemporary_files:\n  - \"{{ ansible_env.LOCALAPPDATA }}\\\\Temp\\\\*\"\n  - \"{{ ansible_env.SystemRoot }}\\\\Temp\\\\*\"\n  - \"{{ ansible_env.SystemRoot }}\\\\Logs\\\\*\"\n  - \"{{ ansible_env.SystemRoot }}\\\\Panther\\\\*\"\n  - \"{{ ansible_env.SystemRoot }}\\\\WinSxS\\\\ManifestCache\\\\*\"\n  - \"{{ ansible_env.SystemRoot }}\\\\SoftwareDistribution\\\\Download\"\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fccdc-opensource%2Fansible-role-compact-vm-image","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fccdc-opensource%2Fansible-role-compact-vm-image","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fccdc-opensource%2Fansible-role-compact-vm-image/lists"}