{"action":"created","issue":{"url":"https://api.github.com/repos/ansible/ansible/issues/15927","repository_url":"https://api.github.com/repos/ansible/ansible","labels_url":"https://api.github.com/repos/ansible/ansible/issues/15927/labels{/name}","comments_url":"https://api.github.com/repos/ansible/ansible/issues/15927/comments","events_url":"https://api.github.com/repos/ansible/ansible/issues/15927/events","html_url":"https://github.com/ansible/ansible/issues/15927","id":155793550,"number":15927,"title":"ansible-playbook --tags not working","user":{"login":"enilsonandrade","id":13789453,"avatar_url":"https://avatars.githubusercontent.com/u/13789453?v=3","gravatar_id":"","url":"https://api.github.com/users/enilsonandrade","html_url":"https://github.com/enilsonandrade","followers_url":"https://api.github.com/users/enilsonandrade/followers","following_url":"https://api.github.com/users/enilsonandrade/following{/other_user}","gists_url":"https://api.github.com/users/enilsonandrade/gists{/gist_id}","starred_url":"https://api.github.com/users/enilsonandrade/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/enilsonandrade/subscriptions","organizations_url":"https://api.github.com/users/enilsonandrade/orgs","repos_url":"https://api.github.com/users/enilsonandrade/repos","events_url":"https://api.github.com/users/enilsonandrade/events{/privacy}","received_events_url":"https://api.github.com/users/enilsonandrade/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ansible/ansible/labels/bug_report","name":"bug_report","color":"fbca04"},{"url":"https://api.github.com/repos/ansible/ansible/labels/P2","name":"P2","color":"fad8c7"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/ansible/ansible/milestones/8","html_url":"https://github.com/ansible/ansible/milestones/2.2.0","labels_url":"https://api.github.com/repos/ansible/ansible/milestones/8/labels","id":1702615,"number":8,"title":"2.2.0","description":"","creator":{"login":"sivel","id":39340,"avatar_url":"https://avatars.githubusercontent.com/u/39340?v=3","gravatar_id":"","url":"https://api.github.com/users/sivel","html_url":"https://github.com/sivel","followers_url":"https://api.github.com/users/sivel/followers","following_url":"https://api.github.com/users/sivel/following{/other_user}","gists_url":"https://api.github.com/users/sivel/gists{/gist_id}","starred_url":"https://api.github.com/users/sivel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sivel/subscriptions","organizations_url":"https://api.github.com/users/sivel/orgs","repos_url":"https://api.github.com/users/sivel/repos","events_url":"https://api.github.com/users/sivel/events{/privacy}","received_events_url":"https://api.github.com/users/sivel/received_events","type":"User","site_admin":false},"open_issues":48,"closed_issues":16,"state":"open","created_at":"2016-04-12T23:10:49Z","updated_at":"2016-06-04T23:19:57Z","due_on":null,"closed_at":null},"comments":5,"created_at":"2016-05-19T17:37:02Z","updated_at":"2016-06-06T09:33:25Z","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```\r\n\r\n\r\n##### SUMMARY\r\nIf I run ansible-playbook with --tags, all roles are still executed, not only the ones with the tag name provided\r\n\r\n##### STEPS TO REPRODUCE\r\n1 Run ansible-playbook --tags \"copy-windows\" site.yml -vvvvv\r\n\r\n```\r\n- name: copy file to windows\r\n  hosts: windows\r\n  roles:\r\n    - { role: copy-windows, tags: [ 'copy-windows' ] }\r\n\r\n- name: deploy PostgreSQL\r\n  hosts: postgres\r\n  vars:\r\n    mapping_pglog_dir: \"/data/mapping-pglog\"\r\n  roles:\r\n    - { role: postgres, become: yes, tags: [ 'postgres' ] }\r\n```\r\n\r\n##### EXPECTED RESULTS\r\nOnly the role copy-windows runs \r\n\r\n##### ACTUAL RESULTS\r\nBoth roles are running. PostgreSQL should not run\r\n\r\n```\r\nPLAY [deploy PostgreSQL] *******************************************************\r\nskipping: no hosts matched\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/ansible/ansible/issues/comments/223911237","html_url":"https://github.com/ansible/ansible/issues/15927#issuecomment-223911237","issue_url":"https://api.github.com/repos/ansible/ansible/issues/15927","id":223911237,"user":{"login":"tongpu","id":2674075,"avatar_url":"https://avatars.githubusercontent.com/u/2674075?v=3","gravatar_id":"","url":"https://api.github.com/users/tongpu","html_url":"https://github.com/tongpu","followers_url":"https://api.github.com/users/tongpu/followers","following_url":"https://api.github.com/users/tongpu/following{/other_user}","gists_url":"https://api.github.com/users/tongpu/gists{/gist_id}","starred_url":"https://api.github.com/users/tongpu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tongpu/subscriptions","organizations_url":"https://api.github.com/users/tongpu/orgs","repos_url":"https://api.github.com/users/tongpu/repos","events_url":"https://api.github.com/users/tongpu/events{/privacy}","received_events_url":"https://api.github.com/users/tongpu/received_events","type":"User","site_admin":false},"created_at":"2016-06-06T09:33:25Z","updated_at":"2016-06-06T09:33:25Z","body":"I just ran into this issue with a playbook we're using for a demo during a presentation. I upgraded to to 2.2.0 and this seems to be fixed. Can this be issue be closed @jctanner?"}}
{"actor":{"display_login":"tongpu"}}