# Pastebin UVcGwTBh - hosts: localhost connection: local tasks: - service: name: blah check_mode: yes register: out - debug: var: out - debug: var: out['status']['LoadState'] # existing service: "out['status']['LoadState']": "loaded" # missing service: "out['status']['LoadState']": "not-found" #