- name: Create test service
  community.kubernetes.k8s:
    definition:
      kind: Service
      api_version: v1
      metadata:
        name: test-service
        namespace: default
      spec:
        ports:
        - protocol: TCP
          port: 8332
          targetPort: 8332
          name: rpc

- name: Check if jmespath is installed
  set_fact:
    instance_tags: '{{app | json_query(query)}}'
  vars:
    query: 'app[*]."memcached"'
