# Gentoo node not emerging package

**URL:** <https://forum.ansible.com/t/gentoo-node-not-emerging-package/17654>\
**Category:** Ansible Project\
**Created:** [March 3, 2015, 1:09am UTC](https://forum.ansible.com/t/gentoo-node-not-emerging-package/17654 "2015-03-03T01:09:16Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jose\_Guevarra](https://avatars.discourse-cdn.com/v4/letter/j/8e7dd6/32.png) [@Jose\_Guevarra](https://forum.ansible.com/u/Jose_Guevarra)\
**Post date:** [March 3, 2015, 1:09am UTC](https://forum.ansible.com/t/gentoo-node-not-emerging-package/17654/1 "2015-03-03T01:09:16Z")

</div>

Hi,

I’m trying to have a remote Gentoo node emerge a package but, the control machine states that “ok: [rnce-lcl] =\> {“changed”: false, “msg”: “Packages already present.”}”. Control machine is ansible 1.8.2 on CentOS7

---

<div class="post-metadata">

**Author:** ![Brian\_Coca](https://avatars.discourse-cdn.com/v4/letter/b/6de8d8/32.png) [@Brian\_Coca](https://forum.ansible.com/u/Brian_Coca)\
**Post date:** [March 4, 2015, 2:53pm UTC](https://forum.ansible.com/t/gentoo-node-not-emerging-package/17654/2 "2015-03-04T14:53:55Z")

</div>

so the portage module seems to be detecting the package as installed,  
if the python version were incorrect you would be getting a different  
error.

also the setup module just shows gathered facts, not inventory variables.

Can you check for the package name with qlist -I?

---

<div class="post-metadata">

**Author:** ![Jose\_Guevarra](https://avatars.discourse-cdn.com/v4/letter/j/8e7dd6/32.png) [@Jose\_Guevarra](https://forum.ansible.com/u/Jose_Guevarra)\
**Post date:** [March 4, 2015, 9:42pm UTC](https://forum.ansible.com/t/gentoo-node-not-emerging-package/17654/3 "2015-03-04T21:42:33Z")

</div>

There are several things that I noticed

Using the “state” parameter with installed, present, emerged doesn’t emerge the package(it states that the package is installed when it’s not). However, using the “update=yes” parameter emerges the package (at least in my case). Although, the “state” parameter can remove packages.

Another confusing behaviour is when doing a dry run/check, ansible comes back with “Packages already present.” when it’s not. This should come back with “Package Not Present” and “changed=false”.
