- hosts: localhost tags: - always tasks: - name: Get inventory with empty input command: merge-standard-inventory environment: # Reset vars to default values TEST_SUBJECTS: register: inventory delegate_to: localhost - name: Assert merge-standard-inventory produces correct JSON inventory (empty) fail: when: inventory.stdout != '{}'