ansible fails with systemd 245.4

Bug #1899232 reported by Lightstar
28
This bug affects 4 people
Affects Status Importance Assigned to Milestone
ansible
Fix Released
Unknown
systemd (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Ansible 2.10.2 fails when determining state of a service on systemd 245.4 in Ubuntu 20.04. It's related to this bug [https://github.com/systemd/systemd/pull/16424]. This bug has been fixed in systemd 245.7. Is there plans to release a fix with this? Without this fix, ansible fails when attempting to manage services on Ubuntu 20.04.

Ubuntu release: Ubuntu 20.04
Package: 245.4-4ubuntu3.2 amd64

What I expected to happen
Service marked as started when it is stopped.

What happened instead
Got 'failed: [127.0.0.1] (item=ssh) => {"ansible_loop_var": "item", "changed": false, "item": "ssh", "msg": "Service is in unknown state", "status": {}}'

Thank you.

Lightstar (lightstar)
affects: systemd → ansible
Changed in ansible:
status: Unknown → Fix Released
Changed in ansible:
status: Fix Released → New
Changed in ansible:
status: New → Fix Released
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in systemd (Ubuntu):
status: New → Confirmed
Revision history for this message
Dan Streetman (ddstreet) wrote :

you didn't say specifically what's causing ansible to fail, but the fix you referenced suggests this is a dup of 1905245, so i'll mark it as such.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.