-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
FAILED! => {"changed": false, "msg": "Malformed output discovered from systemd list-unit-files: apparmor.service enabled"} #669
Comments
I see a few posts on the internet that say that this issue is with Ansible 2.9.6 and upgrading to 2.9.7 should fix the problem. Let me try that out once. |
The problem went away once I migrated to 2.10.2 (Apparently, there are no builds beyond 2.9.6 for Ubuntu 20.04-Minimal, so I had to build from source.) So, it seems like the minimal Ansible version this playbook works with is 2.9.7 - is this something that should be enforced through the version check inherent in the playbook? In any case, please feel free to close this issue if you'd like. |
It's a problem that happens with a specific (older) Ansible version and new systemd. If we are to add some check to the playbook, it should try to match against both of these. It may be a bit tricky, so we're not doing it. Ubuntu 20.04 still ships an old and buggy version of Ansible, even though this has been a known issue for months: https://bugs.launchpad.net/ubuntu/+source/ansible/+bug/1880359 It's not the first time we see such a thing (Ubuntu not updating software, despite known issues). It's even funnier, because 20.04 is labelled as LTS. I think the proper solution is to avoid horrible distros like Ubuntu, which are obviously not your friend, as they are not even "short-term supported", let alone "long-term supported". |
A note on https://github.com/spantaleev/matrix-docker-ansible-deploy/blob/master/docs/prerequisites.md that Ubuntu can work but isn't recommended might not be a bad idea, and maybe another note on https://github.com/spantaleev/matrix-docker-ansible-deploy/blob/master/docs/ansible.md#supported-ansible-versions that Ubuntu ships with a buggy version. |
Good idea! I've added some notes via 3fd198e |
Hi,
I am facing the above-mentioned problem while trying to deploy.
Details:
ansible-playbook -i inventory/hosts setup.yml --tags=start
. (setup-all
succeeded earlier.)Any ideas on how to fix this? (Please let me know if someone needs more details.)
Stack trace:
The text was updated successfully, but these errors were encountered: