Comments (10)
you CAN have per user facts modules now, it is configurable, but the intent is having 'per platform' and a more divisible facts load. right now you can workaround your issue with just having a facts module that returns the correct pkg_mgr key for ansible_facts, at least until we decide if this is something we need to correct in core (breaking backwards compat?) or if we just push to a facts gathering reorg.
from ansible.
First, it is not correct 'now' .. I assume it was correct at one point until AIX changed as AIX users had contributed that code and no one had complained in several years.
Since we don't have access to AIX to test we count on users keeping this up to date, but this is not really sustainable.
One way to address this is having custom/platform specific facts modules, use those via configuration in gather_facts
action and not rely on the core 'setup' module, which we plan to sunset, for this and other reasons.
from ansible.
Files identified in the description:
None
If these files are incorrect, please update the component name
section of the description or use the component bot command.
from ansible.
@StevePOI ansible-core
2.14 is not supported and no longer receives bug fixes. Please test against one of the supported versions of ansible-core
, preferably the most recent one, to see whether the bug has been fixed.
from ansible.
"ansible-core" 2.14.13 is the newest version available on AIX, see https://www.ibm.com/support/pages/node/883796#A
"ansible" has version 7.2.0
from ansible.
@ansibot component /opt/freeware/lib/python3.9/site-packages/ansible/module_utils/facts/system/pkg_mgr.py
from ansible.
this seems like a job for a custom facts module ...
from ansible.
Lines are identical in latest stable release:
https://github.com/ansible/ansible/blob/stable-2.17/lib/ansible/module_utils/facts/system/pkg_mgr.py
from ansible.
this seems like a job for a custom facts module ...
Hello @bcoca !
What do you mean by that?
"installp" is AFAIK only used on IBM AIX and the path set by pkg_mgr.py is not correct.
Sorry if I don´t understand, this is my first issue here :) .
Thanks,
With kind regards,
Steve
from ansible.
Hello @bcoca !
First, it is not correct 'now' .. I assume it was correct at one point until AIX changed as AIX users had contributed that code and no one had complained in several years.
That could be true, the line with installp and the issue that created it is from 2019, AIX 7.2 is from 2015, never monitored the location of these essentials, just used them since they were in $PATH :)
Since we don't have access to AIX to test we count on users keeping this up to date, but this is not really sustainable.
I understand and would be glad to help with feedback regarding AIX :) .
One way to address this is having custom/platform specific facts modules, use those via configuration in gather_facts action and not rely on the core 'setup' module, which we plan to sunset, for this and other reasons.
Do I understand it correctly that this is something planned for Ansible as a whole or do you mean as a "each user has his/her own custom fact modules for their obscure OSes"?
Thanks for the information regarding "setup"!
With kind regards,
Steve
from ansible.
Related Issues (20)
- win_splitdrive filter returns driveletter with a colon and not only a driveletter HOT 5
- Package ansible-core 2.16 from RHEL 8.10 conflicts with ansible 8.3 from EPEL EL8 during dnf/yum update HOT 4
- Children in host.yml gets conflicting HOT 9
- win_iis_webapppool HOT 1
- The _vault_ filter does not encrypt file content from _lookup_ HOT 3
- Duplicate block device filesystem labels in `ansible_facts` are ignored except for the last listed one HOT 3
- dnf: add parameter for "dnf clean all" HOT 2
- `required_one_of` doesn't check variable type HOT 4
- include_tasks with loop and when is not skipping tasks #40746 is back HOT 5
- Blank line at start of stderr/stdout with script module and become with password HOT 7
- Impossible to communicate with docker HOT 1
- Getting Failed to validate GPP signature for NessusAgent-10.6.4-el8.x86_64" HOT 4
- Ensure callbacks can properly detect the connection plugin used for a task HOT 1
- rpm_key does not work with ftp:// URLs HOT 2
- no_log does not honor variable interpretation. HOT 13
- ansible-galaxy collection/role install should have a parameter to ignore ssl certs on collections/roles with scm via https but with self-signed certs. HOT 5
- Test failure with cowsay installed/present HOT 3
- [ec2_asg] fail when update tags inside ASG with KeyError; 'LaunchTemplate HOT 3
- (facts) include microarch in system facts HOT 1
- urlencode doesn't encode `/` HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ansible.