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
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
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?
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”.