{"action":"created","issue":{"url":"https://api.github.com/repos/ansible/ansible/issues/18080","repository_url":"https://api.github.com/repos/ansible/ansible","labels_url":"https://api.github.com/repos/ansible/ansible/issues/18080/labels{/name}","comments_url":"https://api.github.com/repos/ansible/ansible/issues/18080/comments","events_url":"https://api.github.com/repos/ansible/ansible/issues/18080/events","html_url":"https://github.com/ansible/ansible/issues/18080","id":183632295,"number":18080,"title":"include_role - role missing in execution when included more than once","user":{"login":"stepanstipl","id":3027227,"avatar_url":"https://avatars.githubusercontent.com/u/3027227?v=3","gravatar_id":"","url":"https://api.github.com/users/stepanstipl","html_url":"https://github.com/stepanstipl","followers_url":"https://api.github.com/users/stepanstipl/followers","following_url":"https://api.github.com/users/stepanstipl/following{/other_user}","gists_url":"https://api.github.com/users/stepanstipl/gists{/gist_id}","starred_url":"https://api.github.com/users/stepanstipl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stepanstipl/subscriptions","organizations_url":"https://api.github.com/users/stepanstipl/orgs","repos_url":"https://api.github.com/users/stepanstipl/repos","events_url":"https://api.github.com/users/stepanstipl/events{/privacy}","received_events_url":"https://api.github.com/users/stepanstipl/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":"closed","locked":false,"assignee":null,"assignees":[],"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":150,"closed_issues":321,"state":"open","created_at":"2016-04-12T23:10:49Z","updated_at":"2016-10-18T14:34:36Z","due_on":null,"closed_at":null},"comments":4,"created_at":"2016-10-18T09:19:38Z","updated_at":"2016-10-18T14:34:36Z","closed_at":"2016-10-18T14:34:36Z","body":"##### ISSUE TYPE\r\n - Bug Report\r\n\r\n##### COMPONENT NAME\r\ninclude_role\r\n\r\n##### ANSIBLE VERSION\r\n```\r\nansible 2.3.0 (devel d9b570aaae) last updated 2016/10/17 12:17:46 (GMT +100)\r\n  lib/ansible/modules/core: (detached HEAD 15f8c6835b) last updated 2016/10/17 12:17:49 (GMT +100)\r\n  lib/ansible/modules/extras: (detached HEAD 4ca8e5347a) last updated 2016/10/17 12:17:49 (GMT +100)\r\n  config file = /etc/ansible/ansible.cfg\r\n  configured module search path = Default w/o overrides\r\n```\r\n\r\n##### SUMMARY\r\nThe commit 0d5206f seems to fix missing tasks after the include_role (#18026), but there's now another issue - when same role is included more than once, all the subsequent includes are ignored.\r\n\r\n##### STEPS TO REPRODUCE\r\nGiven play:\r\n```\r\n- hosts: localhost\r\n  tasks:\r\n    - include_role:\r\n        name: test-intermediate\r\n```\r\n\r\nand roles\r\n\r\ntest-intermediate:\r\n```\r\n- include_role:\r\n    name: test\r\n\r\n- include_role:\r\n    name: test\r\n```\r\n\r\nand test:\r\n```\r\n- debug:\r\n    msg: Test\r\n```\r\n\r\n##### EXPECTED RESULTS\r\n```\r\nTest\r\nTest\r\n```\r\n\r\n##### ACTUAL RESULTS\r\n```\r\nTest\r\n```\r\n\r\nSo the second include of test role is missing in execution.\r\n\r\n\r\n@bcoca @jimi-c I've updated the original issue (#18206), but it seemed to go unnoticed and as I can't reopen I've created this one. Thanks."},"comment":{"url":"https://api.github.com/repos/ansible/ansible/issues/comments/254527081","html_url":"https://github.com/ansible/ansible/issues/18080#issuecomment-254527081","issue_url":"https://api.github.com/repos/ansible/ansible/issues/18080","id":254527081,"user":{"login":"stepanstipl","id":3027227,"avatar_url":"https://avatars.githubusercontent.com/u/3027227?v=3","gravatar_id":"","url":"https://api.github.com/users/stepanstipl","html_url":"https://github.com/stepanstipl","followers_url":"https://api.github.com/users/stepanstipl/followers","following_url":"https://api.github.com/users/stepanstipl/following{/other_user}","gists_url":"https://api.github.com/users/stepanstipl/gists{/gist_id}","starred_url":"https://api.github.com/users/stepanstipl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stepanstipl/subscriptions","organizations_url":"https://api.github.com/users/stepanstipl/orgs","repos_url":"https://api.github.com/users/stepanstipl/repos","events_url":"https://api.github.com/users/stepanstipl/events{/privacy}","received_events_url":"https://api.github.com/users/stepanstipl/received_events","type":"User","site_admin":false},"created_at":"2016-10-18T14:34:36Z","updated_at":"2016-10-18T14:34:36Z","body":"@amenonsen I'm not able to reproduce this anymore myself, so I'll close this (swear the only thing that changed was computer restart.. but that shouldn't matter.. no clue, maybe I'm just going crazy :) ), thanks "}}
{"actor":{"display_login":"stepanstipl"}}