-
Notifications
You must be signed in to change notification settings - Fork 23.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix service_mgr fact collection #32086
Conversation
@alikins Thanks a lot for your effort. |
Cherry-picked for the 2.4.2beta1 release. I'll cut that tarball later this week. |
I've downloaded and installed ansible-2.4.2.0-0.1.beta1.tar.gz. However, it's still not working correctly:
|
@aabdnn I can't confirm your observation. I've tested ansible tags I used this snippets for the centos test (replaced the image): Wheezy tests also ran against real hosts previously affected. |
Yes, it's definitely a CentOS 6 system:
|
Still having trouble reproducing...
using this playbook ---
- hosts: all
tasks:
- name: vars
debug:
msg: |
Ansible: {{ ansible_version.full }}
OS: {{ ansible_distribution }} {{ ansible_distribution_version }} {{ ansible_distribution_release }}
Service_mgr: {{ ansible_service_mgr }} looks as expected. |
Okay, so the playbook works, and reports "upstart" for the service manager:
However, the following still fails. What is different about them?
|
Fun fact, try Actually I don't know what's going on here and not sure it's the same issue. It seems to be related to the filter implementation in setup module. |
Whoa! So when the "setup" module runs without any "filter" parameter, it also detects upstart properly, but with "filter=ansible_service_mgr" it fails. So there's still some kind of bug at work. |
It looks like the original big has been fixed but they is another one still.
Can someone open up a new issue with the details of the new reproducer?
@alikins is on vacation today still I want to make sure this information
isn't lost.
|
Fixes #32001 |
The platform/distro/etc facts were being passed in
correctly, but service_mgr.py was looking up the
wrong names ('system' vs 'ansible_system')
Fixes #30753, #31095
SUMMARY
ISSUE TYPE
COMPONENT NAME
lib/ansible/module_utils/facts/system/service_mgr.py
ANSIBLE VERSION
ADDITIONAL INFORMATION