Skip to content
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

Collect service facts fail. Ansible 2.9.6 and Ubuntu 20.04 host #30

Open
sondreengebraten opened this issue Aug 9, 2022 · 1 comment
Assignees

Comments

@sondreengebraten
Copy link

sondreengebraten commented Aug 9, 2022

Hi!

I get the following error when trying this role on a Ubuntu 20.04 host using Ansible 2.9.6.

TASK [ansible-role-elk-auditbeat : (Linux) Collect service facts] ************** fatal: [<hostname>]: FAILED! => {"changed": false, "msg": "Malformed output discovered from systemd list-unit-files: accounts-daemon.service enabled enabled "}

This is supposed to be fixed but somehow still results in an error. See this issue ansible/ansible#68211

Any ideas?

Thanks
`

@j91321 j91321 self-assigned this Aug 9, 2022
@j91321
Copy link
Owner

j91321 commented Aug 9, 2022

Well, I checked it out but since 2.9.6 is a version from 2019 I can't event easily install it. As I understand it the fix for the mentioned issue was backported into 2.9. Do you have a version with the patch applied? You can verify this by checking the service_facts.py module against this PR

It does seem to work ok on 2.13.6 so I suggest upgrading ansible version is the easiest way to go.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants