The service_facts module does not work in Ubuntu 20.04
hma23 opened this issue · comments
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.
possible duplicate of #68536
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