ansible / ansible

Ansible is a radically simple IT automation platform that makes your applications and systems easier to deploy and maintain. Automate everything from code deployment to network configuration to cloud management, in a language that approaches plain English, using SSH, with no agents to install on remote systems. https://docs.ansible.com.

Home Page:https://www.ansible.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

The service_facts module does not work in Ubuntu 20.04

hma23 opened this issue · comments

commented

Summary

Running the service_facts module on Ubuntu 20.04 causes the following error:

localhost | FAILED! => {
    "changed": false,
    "msg": "Malformed output discovered from systemd list-unit-files: accounts-daemon.service                    enabled         enabled      "
}

Issue Type

Bug Report

Component Name

ansible

Ansible Version

$ ansible --version

Configuration

$ ansible-config dump --only-changed

OS / Environment

Ubuntu 20.04

Steps to Reproduce

localhost | FAILED! => {
"changed": false,
"msg": "Malformed output discovered from systemd list-unit-files: accounts-daemon.service enabled enabled "
}

Expected Results

ansible -m service_facts localhost

Actual Results

localhost | FAILED! => {
    "changed": false,
    "msg": "Malformed output discovered from systemd list-unit-files: accounts-daemon.service                enabled         enabled      "
}

Code of Conduct

  • I agree to follow the Ansible Code of Conduct

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.

click here for bot help

@hma23 Thanks for reporting this. Could you please specify the version of Ansible used? Since this issue is already fixed in 2.9, stable and devel.

Please refer - #68211

needs_info

possible duplicate of #68536

commented

ansible 2.9.6
--installed with 'apt install ansible'
ran command: ansible -m service_facts localhost

Any workaround for this?

FAILED! => {
"ansible_facts": {
"discovered_interpreter_python": "/usr/bin/python3"
},
"changed": false
}

MSG:

Malformed output discovered from systemd list-unit-files: accounts-daemon.service enabled enabled

@hma23 Please upgrade to Ansible 2.9.8 or latest.

needs_info