Closed azrdev closed 4 months ago
I see that you are using AAP. You might be interested in supported version of this module
Personally I think this is a bad idea to fail if not SAP instances found and it can be covered with ansible functionality like so
- name: Test host_info module
sap.sap_operations.host_info:
register: _
failed_when: _.instances | length == 0 and _.databases | length == 0
this "feature" is against the behaviour of facts you could implement as @kksat suggested this with a failed_when
Summary
Apparently the modules can be run on any machine (e.g.
delegate_to: localhost
) except for sap_system_facts, which (according to the source) looks on the managed node it is executed on.Furthermore, in such a case it just returns successfully without producing facts, I'd expect a task failure if there's no SAP on that host
Issue Type
Bug Report
Component Name
community.sap_libs.sap_system_facts
Ansible Version
community.sap_libs Version
Configuration
No response
OS / Environment
AAP 2.4 / AAC 4.4.7
Steps to Reproduce
Expected Results
Actual Results
No response
Code of Conduct