- hosts: localhost
  gather_facts: no
  tasks:
  - name: Use ping from library path
    ping:
    register: result

  - assert:
      that:
        - '"location" in result'
        - 'result["location"] == "library"'