{"action":"closed","issue":{"url":"https://api.github.com/repos/ansible/ansible/issues/39672","repository_url":"https://api.github.com/repos/ansible/ansible","labels_url":"https://api.github.com/repos/ansible/ansible/issues/39672/labels{/name}","comments_url":"https://api.github.com/repos/ansible/ansible/issues/39672/comments","events_url":"https://api.github.com/repos/ansible/ansible/issues/39672/events","html_url":"https://github.com/ansible/ansible/issues/39672","id":319896014,"number":39672,"title":"import_role docs shows example with a loop, which doesn't work","user":{"login":"agaffney","id":825875,"avatar_url":"https://avatars2.githubusercontent.com/u/825875?v=4","gravatar_id":"","url":"https://api.github.com/users/agaffney","html_url":"https://github.com/agaffney","followers_url":"https://api.github.com/users/agaffney/followers","following_url":"https://api.github.com/users/agaffney/following{/other_user}","gists_url":"https://api.github.com/users/agaffney/gists{/gist_id}","starred_url":"https://api.github.com/users/agaffney/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/agaffney/subscriptions","organizations_url":"https://api.github.com/users/agaffney/orgs","repos_url":"https://api.github.com/users/agaffney/repos","events_url":"https://api.github.com/users/agaffney/events{/privacy}","received_events_url":"https://api.github.com/users/agaffney/received_events","type":"User","site_admin":false},"labels":[{"id":686214011,"url":"https://api.github.com/repos/ansible/ansible/labels/affects_2.5","name":"affects_2.5","color":"ededed","default":false},{"id":849212023,"url":"https://api.github.com/repos/ansible/ansible/labels/docs","name":"docs","color":"0052cc","default":false},{"id":496359346,"url":"https://api.github.com/repos/ansible/ansible/labels/module","name":"module","color":"1d76db","default":false},{"id":636352796,"url":"https://api.github.com/repos/ansible/ansible/labels/support:core","name":"support:core","color":"ededed","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-05-03T12:16:36Z","updated_at":"2018-05-04T17:36:34Z","closed_at":"2018-05-04T17:36:34Z","author_association":"CONTRIBUTOR","body":"##### ISSUE TYPE\r\n - Documentation Report\r\n\r\n##### COMPONENT NAME\r\nimport_role\r\n\r\n##### ANSIBLE VERSION\r\n```\r\nansible 2.5.2\r\n```\r\n\r\n##### CONFIGURATION\r\nN/A\r\n\r\n##### OS / ENVIRONMENT\r\nN/A\r\n\r\n##### SUMMARY\r\nThe docs for `import_role` show an example of using it in a loop. This doesn't actually work. With a task like the following:\r\n\r\n```yaml\r\n    - import_role:\r\n        name: foo\r\n      with_sequence: start=1 count=5\r\n```\r\n\r\nyou get:\r\n\r\n```\r\nERROR! You cannot use 'static' on an include_role with a loop\r\n```\r\n\r\n##### STEPS TO REPRODUCE\r\nN/A\r\n\r\n##### EXPECTED RESULTS\r\nN/A\r\n\r\n##### ACTUAL RESULTS\r\nN/A"}}
{"actor":{"display_login":"mkrizek"}}