{"action":"opened","issue":{"url":"https://api.github.com/repos/ansible/ansible/issues/15709","repository_url":"https://api.github.com/repos/ansible/ansible","labels_url":"https://api.github.com/repos/ansible/ansible/issues/15709/labels{/name}","comments_url":"https://api.github.com/repos/ansible/ansible/issues/15709/comments","events_url":"https://api.github.com/repos/ansible/ansible/issues/15709/events","html_url":"https://github.com/ansible/ansible/issues/15709","id":152847407,"number":15709,"title":"list tasks not compatible with syntax check","user":{"login":"MichaelBaydoun","id":833061,"avatar_url":"https://avatars.githubusercontent.com/u/833061?v=3","gravatar_id":"","url":"https://api.github.com/users/MichaelBaydoun","html_url":"https://github.com/MichaelBaydoun","followers_url":"https://api.github.com/users/MichaelBaydoun/followers","following_url":"https://api.github.com/users/MichaelBaydoun/following{/other_user}","gists_url":"https://api.github.com/users/MichaelBaydoun/gists{/gist_id}","starred_url":"https://api.github.com/users/MichaelBaydoun/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MichaelBaydoun/subscriptions","organizations_url":"https://api.github.com/users/MichaelBaydoun/orgs","repos_url":"https://api.github.com/users/MichaelBaydoun/repos","events_url":"https://api.github.com/users/MichaelBaydoun/events{/privacy}","received_events_url":"https://api.github.com/users/MichaelBaydoun/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-05-03T18:50:40Z","updated_at":"2016-05-03T18:50:40Z","closed_at":null,"body":"##### ISSUE TYPE\r\n - Bug Report\r\n\r\n##### ANSIBLE VERSION\r\n```\r\nansible 2.0.2.0\r\n  config file = /home/iabaydma/.ansible.cfg\r\n  configured module search path = Default w/o overrides\r\n```\r\n\r\n##### CONFIGURATION\r\n[defaults]\r\nforks = 50\r\nhost_key_checking = false\r\ninventory = ~/ansible/hosts-sbx\r\nmax_fail_percentage = 1\r\ntransport = ssh\r\npattern = NONE\r\n\r\n##### OS / ENVIRONMENT\r\nN/A\r\n\r\n##### SUMMARY\r\nadding --syntax-check with --list-tasks breaks --list-tasks\r\n\r\n##### STEPS TO REPRODUCE\r\nansible-playbook --list-tasks yourplaybook.yml # works\r\nansible-playbook --list-tasks --syntax-check yourplaybook.yml # checks syntax but doesn't list tasks\r\n\r\n##### EXPECTED RESULTS\r\nExpected a list of tasks and syntax check results\r\n\r\n##### ACTUAL RESULTS\r\n```\r\n(prompt) ansible-playbook --list-tasks ansible.yml -i hosts-sbx --syntax-check -vvvv\r\nUsing /home/redacted/.ansible.cfg as config file\r\n[DEPRECATION WARNING]: Instead of sudo/sudo_user, use become/become_user and make sure become_method is 'sudo' (default).\r\nThis feature will be removed in a future release. Deprecation warnings can be \r\ndisabled by setting deprecation_warnings=False in ansible.cfg.\r\n1 plays in ansible.yml\r\n\r\nplaybook: ansible.yml\r\n```\r\n"}}