{"id":16779800,"url":"https://github.com/petermosmans/ansible-role-compact-box","last_synced_at":"2026-05-05T00:33:12.154Z","repository":{"id":75894840,"uuid":"45504692","full_name":"PeterMosmans/ansible-role-compact-box","owner":"PeterMosmans","description":"Ansible role for compacting of Linux distributions, preparing them for e.g. Vagrant using","archived":false,"fork":false,"pushed_at":"2019-10-17T01:00:43.000Z","size":26,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-29T16:45:07.598Z","etag":null,"topics":["ansible","ansible-role","compact","debian","package","reduce","ubuntu"],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/PeterMosmans.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":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2015-11-04T00:26:09.000Z","updated_at":"2024-08-08T13:13:00.000Z","dependencies_parsed_at":"2023-07-12T00:16:06.743Z","dependency_job_id":null,"html_url":"https://github.com/PeterMosmans/ansible-role-compact-box","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/PeterMosmans/ansible-role-compact-box","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PeterMosmans%2Fansible-role-compact-box","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PeterMosmans%2Fansible-role-compact-box/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PeterMosmans%2Fansible-role-compact-box/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PeterMosmans%2Fansible-role-compact-box/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PeterMosmans","download_url":"https://codeload.github.com/PeterMosmans/ansible-role-compact-box/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PeterMosmans%2Fansible-role-compact-box/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32631057,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-04T10:08:07.713Z","status":"ssl_error","status_checked_at":"2026-05-04T10:08:02.005Z","response_time":58,"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":["ansible","ansible-role","compact","debian","package","reduce","ubuntu"],"created_at":"2024-10-13T07:32:26.446Z","updated_at":"2026-05-05T00:33:12.132Z","avatar_url":"https://github.com/PeterMosmans.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"Ansible Role: compact-box\n=====================\n\nBuild status for this role: [![Build Status](https://travis-ci.org/PeterMosmans/ansible-role-compact-box.svg)](https://travis-ci.org/PeterMosmans/ansible-role-compact-box)\n\n\nThis role compacts Linux distributions, preparing them for e.g. Vagrant usage.\nIt keeps only the specified locale(s), and removes unnecessary packages. Both can be specified in the `defaults/main.yml` file.\n\nBy default, all locales will be removed except for `en_US`, and no packages will be removed.\n\nRequirements\n------------\n\nNone.\n\nRole Variables\n--------------\n\nAvailable variables are listed below, along with default values.\n\n\n**keep_locales**: A list with locales to keep. The defaults can be found in ```defaults/main.yml```.\nExample:\n```\nkeep_locales:\n  - en_GB\n  - en_US\n  - i18n\n  - iso14651_t1\n  - iso14651_t1_common\n```\n\n\n**unnecessary_packages**: A list with packages which will be removed. The defaults can be found in ```defaults/main.yml```.\nExample:\n```\nunnecessary_packages:\n  - build-essential\n  - bzip2\n  - dkms\n  - dpkg-dev\n  - gcc\n  - make\n  - task-laptop\n```\n\nAfter the role has executed succesfully, a script has been copied to the machine, under `/usr/bin/compact_box.sh`. This script will take care of the last compacting steps, before e.g. turning the machine into a Vagrant box. Note that the script will shutdown the box if you run it manually.\n\n\nDependencies\n------------\n\nNone.\n\n\n\nExample Playbook\n----------------\n```\n- hosts: all\n  become: yes\n  become_method: sudo\n  roles:\n    - role: PeterMosmans.compact-box\n```\nThis example will compact a distribution\n\n\nLicense\n-------\n\nGPLv3\n\n\nAuthor Information\n------------------\n\nCreated by Peter Mosmans.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpetermosmans%2Fansible-role-compact-box","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpetermosmans%2Fansible-role-compact-box","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpetermosmans%2Fansible-role-compact-box/lists"}