# Only install specific modules from general

**URL:** <https://forum.ansible.com/t/only-install-specific-modules-from-general/45807>\
**Category:** Get Help\
**Created:** [May 17, 2026, 5:59pm UTC](https://forum.ansible.com/t/only-install-specific-modules-from-general/45807 "2026-05-17T17:59:31Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![User0009](https://avatars.discourse-cdn.com/v4/letter/u/a698b9/32.png) [@User0009](https://forum.ansible.com/u/User0009)\
**Post date:** [May 17, 2026, 5:59pm UTC](https://forum.ansible.com/t/only-install-specific-modules-from-general/45807/1 "2026-05-17T17:59:31Z")

</div>

I only use 3 modules from `community.general` and would rather not install the whole collection. Is there a supported way to install specific modules?

---

<div class="post-metadata">

**Author:** ![mariolenz](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/mariolenz/32/108_2.png) [@mariolenz](https://forum.ansible.com/u/mariolenz)\
**Post date:** [May 17, 2026, 6:03pm UTC](https://forum.ansible.com/t/only-install-specific-modules-from-general/45807/2 "2026-05-17T18:03:27Z")

</div>

I don’t think there is. To the best of my knowledge, it’s all or nothing.

Why don’t you want to install the complete collection? A few KB or even MB more, few less… 🤷

---

<div class="post-metadata">

**Author:** ![felixfontein](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/felixfontein/32/7530_2.png) [@felixfontein](https://forum.ansible.com/u/felixfontein)\
**Post date:** [May 17, 2026, 7:21pm UTC](https://forum.ansible.com/t/only-install-specific-modules-from-general/45807/3 "2026-05-17T19:21:25Z")

</div>

You could write a script that creates a copy of the collection and deletes everything that isn’t needed. What you need to watch out for are doc fragments and module utils, besides that modules don’t need anything else. But no, there’s no official way to do this.

(It shouldn’t be too hard to write a script which automates that by figuring out which doc fragments are needed and which module utils - for module utils you could take a look at [Add tool to find unused module utils by felixfontein · Pull Request #151 · ansible-community/antsibull-nox · GitHub](https://github.com/ansible-community/antsibull-nox/pull/151) and the code it uses. But it’s likely a lot easier to create something specific for the modules you’re using, instead of writing a general tool.)
