{"action":"closed","issue":{"url":"https://api.github.com/repos/ansible/ansible/issues/10892","labels_url":"https://api.github.com/repos/ansible/ansible/issues/10892/labels{/name}","comments_url":"https://api.github.com/repos/ansible/ansible/issues/10892/comments","events_url":"https://api.github.com/repos/ansible/ansible/issues/10892/events","html_url":"https://github.com/ansible/ansible/issues/10892","id":72404145,"number":10892,"title":"Not able to guard a with_dict when the dict variable does not exist","user":{"login":"memelet","id":22981,"avatar_url":"https://avatars.githubusercontent.com/u/22981?v=3","gravatar_id":"","url":"https://api.github.com/users/memelet","html_url":"https://github.com/memelet","followers_url":"https://api.github.com/users/memelet/followers","following_url":"https://api.github.com/users/memelet/following{/other_user}","gists_url":"https://api.github.com/users/memelet/gists{/gist_id}","starred_url":"https://api.github.com/users/memelet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/memelet/subscriptions","organizations_url":"https://api.github.com/users/memelet/orgs","repos_url":"https://api.github.com/users/memelet/repos","events_url":"https://api.github.com/users/memelet/events{/privacy}","received_events_url":"https://api.github.com/users/memelet/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-05-01T10:36:32Z","updated_at":"2015-05-01T10:43:09Z","closed_at":"2015-05-01T10:43:09Z","body":"Consider:\r\n```\r\n- debug: msg=\"DICT {{item.key}}\"\r\n  when: false\r\n  with_dict: undefined_dict\r\n```\r\n\r\nResults in:\r\n```\r\nTASK: [consul | debug msg=\"DICT {{item.key}}\"] ********************************\r\nfatal: [consul-client-1] => with_dict expects a dict\r\n```"}}