# generic 'package' module?

**URL:** <https://forum.ansible.com/t/generic-package-module/18425>\
**Category:** Ansible Project\
**Created:** [June 7, 2015, 3:05pm UTC](https://forum.ansible.com/t/generic-package-module/18425 "2015-06-07T15:05:05Z")\
**Posts on this page:** 1\
**Page:** 2

<div class="post-metadata">

**Author:** ![Roman\_Belyakovsky](https://avatars.discourse-cdn.com/v4/letter/r/ecae2f/32.png) [@Roman\_Belyakovsky](https://forum.ansible.com/u/Roman_Belyakovsky)\
**Post date:** [September 14, 2015, 4:26pm UTC](https://forum.ansible.com/t/generic-package-module/18425/21 "2015-09-14T16:26:10Z")

</div>

Hi Christian,

I didn’t get how did you do the OS specific package installation. I’ve ended up with a temporary solution:

`

- name: install python-passlib  
action: “{{ ansible\_pkg\_mgr }} name={{ item.name }}”  
with\_items:
- { os: Gentoo, name: dev-python/passlib }  
when: ansible\_os\_family == item.os

`

But I do like the way you’ve shown. Could I possibly ask you to give me an example with the ‘action’ module? And should it work in ansible 1.9?

[Previous page](https://forum.ansible.com/t/generic-package-module/18425.md?page=1)
