I'm not using 'ansible.module_utils.compat.version'. AAP is using that
module, i guess.
Underneath playbook works locally, not in AAP. The fact mountfact is a
dict. I've also tried to add to_json , from_json, and both, without any
changes.
I made a SO post as i'm currently blocked with this. Not sure what to
troubleshoot next.
This is part of a role, underneath my test playbook.
---
- name: get instana mounts
hosts: localhost
tasks:
- ansible.builtin.setup:
filter: 'ansible_mounts'
delegate_to: vmcode1234
connection: ssh
register: mountfat
- debug:
var: item
loop: "{{ mountfat | community.general.json_query( query ) }}"
vars:
query:
"ansible_facts.ansible_mounts[?contains(mount,'instana')].mount"
--
You received this message because you are subscribed to the Google Groups
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/50ca916f-0a2a-4fd3-af58-bb9be54e16dfn%40googlegroups.com.