{"action":"created","comment":{"url":"https://api.github.com/repos/theforeman/theforeman.org/pulls/comments/79343662","id":79343662,"diff_hunk":"@@ -84,11 +84,29 @@ Run ansible on your hosts and the callback will send everything to Foreman autom\n \n ![registering a host](static/images/plugins/foreman_ansible/registering_a_host.gif)\n \n-If you want to assign Ansible roles to your hosts, please put them on `/etc/ansible/roles/`. After that the plugin will detect them and you will be able to assign them to your hosts when you edit them.\n+## 4.1 Importing Roles\n \n-![adding roles](static/images/plugins/foreman_ansible/adding_roles.png)\n+Ansible roles can be imported from a smart proxy that has 'Ansible' feature or from '/etc/ansible/roles' on your Foreman host. A list of all roles already imported into Foreman can be accessed through 'Configure' in the main menu. You can select the source for import from the dropdown on the right.\n \n-To run the playbook with the roles selected, click on the 'play Ansible roles' button and Foreman will run a playbook on the background with these roles. Logs for this playbook can be found under the regular Foreman log, usually `/var/log/foreman/production.log`\n+![ansible roles index](static/images/plugins/foreman_ansible/ansible_roles_index.png)\n+![ansible import dropdown](static/images/plugins/foreman_ansible/ansible_import_dropdown.png)\n+\n+You will be presented with a list of possible changes. You can remove the Ansible roles from Foreman that are obsolete and you can import new ones.\n+\n+![ansible import roles](static/images/plugins/foreman_ansible/ansible_import_roles.png)\n+\n+## 4.2 Selecting roles for a host\n+\n+Ansible roles can be assigned to a host on 'Ansible Roles' tab on the host's edit page. It is also possible to inherit Ansible roles form a hostgroup.","path":"plugins/foreman_ansible/1.x/index.md","position":20,"original_position":20,"commit_id":"fc11faf70374057c25e177452e2ad41733711fdb","original_commit_id":"fc11faf70374057c25e177452e2ad41733711fdb","user":{"login":"dLobatog","id":598891,"avatar_url":"https://avatars.githubusercontent.com/u/598891?v=3","gravatar_id":"","url":"https://api.github.com/users/dLobatog","html_url":"https://github.com/dLobatog","followers_url":"https://api.github.com/users/dLobatog/followers","following_url":"https://api.github.com/users/dLobatog/following{/other_user}","gists_url":"https://api.github.com/users/dLobatog/gists{/gist_id}","starred_url":"https://api.github.com/users/dLobatog/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dLobatog/subscriptions","organizations_url":"https://api.github.com/users/dLobatog/orgs","repos_url":"https://api.github.com/users/dLobatog/repos","events_url":"https://api.github.com/users/dLobatog/events{/privacy}","received_events_url":"https://api.github.com/users/dLobatog/received_events","type":"User","site_admin":false},"body":"hostgroup -> host group. but I'll change that on merge","created_at":"2016-09-19T08:20:26Z","updated_at":"2016-09-19T08:20:26Z","html_url":"https://github.com/theforeman/theforeman.org/pull/686#discussion_r79343662","pull_request_url":"https://api.github.com/repos/theforeman/theforeman.org/pulls/686","_links":{"self":{"href":"https://api.github.com/repos/theforeman/theforeman.org/pulls/comments/79343662"},"html":{"href":"https://github.com/theforeman/theforeman.org/pull/686#discussion_r79343662"},"pull_request":{"href":"https://api.github.com/repos/theforeman/theforeman.org/pulls/686"}}},"pull_request":{"url":"https://api.github.com/repos/theforeman/theforeman.org/pulls/686","id":82724769,"html_url":"https://github.com/theforeman/theforeman.org/pull/686","diff_url":"https://github.com/theforeman/theforeman.org/pull/686.diff","patch_url":"https://github.com/theforeman/theforeman.org/pull/686.patch","issue_url":"https://api.github.com/repos/theforeman/theforeman.org/issues/686","number":686,"state":"open","locked":false,"title":"Add doc for importing Ansible roles","user":{"login":"xprazak2","id":2664090,"avatar_url":"https://avatars.githubusercontent.com/u/2664090?v=3","gravatar_id":"","url":"https://api.github.com/users/xprazak2","html_url":"https://github.com/xprazak2","followers_url":"https://api.github.com/users/xprazak2/followers","following_url":"https://api.github.com/users/xprazak2/following{/other_user}","gists_url":"https://api.github.com/users/xprazak2/gists{/gist_id}","starred_url":"https://api.github.com/users/xprazak2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xprazak2/subscriptions","organizations_url":"https://api.github.com/users/xprazak2/orgs","repos_url":"https://api.github.com/users/xprazak2/repos","events_url":"https://api.github.com/users/xprazak2/events{/privacy}","received_events_url":"https://api.github.com/users/xprazak2/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-08-25T14:00:24Z","updated_at":"2016-09-19T08:20:26Z","closed_at":null,"merged_at":null,"merge_commit_sha":"1f85e540e3dde1196a2fc520f315a685b51f0a69","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/theforeman/theforeman.org/pulls/686/commits","review_comments_url":"https://api.github.com/repos/theforeman/theforeman.org/pulls/686/comments","review_comment_url":"https://api.github.com/repos/theforeman/theforeman.org/pulls/comments{/number}","comments_url":"https://api.github.com/repos/theforeman/theforeman.org/issues/686/comments","statuses_url":"https://api.github.com/repos/theforeman/theforeman.org/statuses/fc11faf70374057c25e177452e2ad41733711fdb","head":{"label":"xprazak2:roles-import","ref":"roles-import","sha":"fc11faf70374057c25e177452e2ad41733711fdb","user":{"login":"xprazak2","id":2664090,"avatar_url":"https://avatars.githubusercontent.com/u/2664090?v=3","gravatar_id":"","url":"https://api.github.com/users/xprazak2","html_url":"https://github.com/xprazak2","followers_url":"https://api.github.com/users/xprazak2/followers","following_url":"https://api.github.com/users/xprazak2/following{/other_user}","gists_url":"https://api.github.com/users/xprazak2/gists{/gist_id}","starred_url":"https://api.github.com/users/xprazak2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xprazak2/subscriptions","organizations_url":"https://api.github.com/users/xprazak2/orgs","repos_url":"https://api.github.com/users/xprazak2/repos","events_url":"https://api.github.com/users/xprazak2/events{/privacy}","received_events_url":"https://api.github.com/users/xprazak2/received_events","type":"User","site_admin":false},"repo":{"id":52520582,"name":"theforeman.org","full_name":"xprazak2/theforeman.org","owner":{"login":"xprazak2","id":2664090,"avatar_url":"https://avatars.githubusercontent.com/u/2664090?v=3","gravatar_id":"","url":"https://api.github.com/users/xprazak2","html_url":"https://github.com/xprazak2","followers_url":"https://api.github.com/users/xprazak2/followers","following_url":"https://api.github.com/users/xprazak2/following{/other_user}","gists_url":"https://api.github.com/users/xprazak2/gists{/gist_id}","starred_url":"https://api.github.com/users/xprazak2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xprazak2/subscriptions","organizations_url":"https://api.github.com/users/xprazak2/orgs","repos_url":"https://api.github.com/users/xprazak2/repos","events_url":"https://api.github.com/users/xprazak2/events{/privacy}","received_events_url":"https://api.github.com/users/xprazak2/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/xprazak2/theforeman.org","description":"The new and improved Foreman website.","fork":true,"url":"https://api.github.com/repos/xprazak2/theforeman.org","forks_url":"https://api.github.com/repos/xprazak2/theforeman.org/forks","keys_url":"https://api.github.com/repos/xprazak2/theforeman.org/keys{/key_id}","collaborators_url":"https://api.github.com/repos/xprazak2/theforeman.org/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/xprazak2/theforeman.org/teams","hooks_url":"https://api.github.com/repos/xprazak2/theforeman.org/hooks","issue_events_url":"https://api.github.com/repos/xprazak2/theforeman.org/issues/events{/number}","events_url":"https://api.github.com/repos/xprazak2/theforeman.org/events","assignees_url":"https://api.github.com/repos/xprazak2/theforeman.org/assignees{/user}","branches_url":"https://api.github.com/repos/xprazak2/theforeman.org/branches{/branch}","tags_url":"https://api.github.com/repos/xprazak2/theforeman.org/tags","blobs_url":"https://api.github.com/repos/xprazak2/theforeman.org/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/xprazak2/theforeman.org/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/xprazak2/theforeman.org/git/refs{/sha}","trees_url":"https://api.github.com/repos/xprazak2/theforeman.org/git/trees{/sha}","statuses_url":"https://api.github.com/repos/xprazak2/theforeman.org/statuses/{sha}","languages_url":"https://api.github.com/repos/xprazak2/theforeman.org/languages","stargazers_url":"https://api.github.com/repos/xprazak2/theforeman.org/stargazers","contributors_url":"https://api.github.com/repos/xprazak2/theforeman.org/contributors","subscribers_url":"https://api.github.com/repos/xprazak2/theforeman.org/subscribers","subscription_url":"https://api.github.com/repos/xprazak2/theforeman.org/subscription","commits_url":"https://api.github.com/repos/xprazak2/theforeman.org/commits{/sha}","git_commits_url":"https://api.github.com/repos/xprazak2/theforeman.org/git/commits{/sha}","comments_url":"https://api.github.com/repos/xprazak2/theforeman.org/comments{/number}","issue_comment_url":"https://api.github.com/repos/xprazak2/theforeman.org/issues/comments{/number}","contents_url":"https://api.github.com/repos/xprazak2/theforeman.org/contents/{+path}","compare_url":"https://api.github.com/repos/xprazak2/theforeman.org/compare/{base}...{head}","merges_url":"https://api.github.com/repos/xprazak2/theforeman.org/merges","archive_url":"https://api.github.com/repos/xprazak2/theforeman.org/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/xprazak2/theforeman.org/downloads","issues_url":"https://api.github.com/repos/xprazak2/theforeman.org/issues{/number}","pulls_url":"https://api.github.com/repos/xprazak2/theforeman.org/pulls{/number}","milestones_url":"https://api.github.com/repos/xprazak2/theforeman.org/milestones{/number}","notifications_url":"https://api.github.com/repos/xprazak2/theforeman.org/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/xprazak2/theforeman.org/labels{/name}","releases_url":"https://api.github.com/repos/xprazak2/theforeman.org/releases{/id}","deployments_url":"https://api.github.com/repos/xprazak2/theforeman.org/deployments","created_at":"2016-02-25T11:47:17Z","updated_at":"2016-02-25T11:47:30Z","pushed_at":"2016-09-19T07:55:11Z","git_url":"git://github.com/xprazak2/theforeman.org.git","ssh_url":"git@github.com:xprazak2/theforeman.org.git","clone_url":"https://github.com/xprazak2/theforeman.org.git","svn_url":"https://github.com/xprazak2/theforeman.org","homepage":null,"size":50819,"stargazers_count":0,"watchers_count":0,"language":"HTML","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"gh-pages"}},"base":{"label":"theforeman:gh-pages","ref":"gh-pages","sha":"c87384729b5a693ed370ed3d25cd76223e2bca56","user":{"login":"theforeman","id":1439844,"avatar_url":"https://avatars.githubusercontent.com/u/1439844?v=3","gravatar_id":"","url":"https://api.github.com/users/theforeman","html_url":"https://github.com/theforeman","followers_url":"https://api.github.com/users/theforeman/followers","following_url":"https://api.github.com/users/theforeman/following{/other_user}","gists_url":"https://api.github.com/users/theforeman/gists{/gist_id}","starred_url":"https://api.github.com/users/theforeman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/theforeman/subscriptions","organizations_url":"https://api.github.com/users/theforeman/orgs","repos_url":"https://api.github.com/users/theforeman/repos","events_url":"https://api.github.com/users/theforeman/events{/privacy}","received_events_url":"https://api.github.com/users/theforeman/received_events","type":"Organization","site_admin":false},"repo":{"id":5928690,"name":"theforeman.org","full_name":"theforeman/theforeman.org","owner":{"login":"theforeman","id":1439844,"avatar_url":"https://avatars.githubusercontent.com/u/1439844?v=3","gravatar_id":"","url":"https://api.github.com/users/theforeman","html_url":"https://github.com/theforeman","followers_url":"https://api.github.com/users/theforeman/followers","following_url":"https://api.github.com/users/theforeman/following{/other_user}","gists_url":"https://api.github.com/users/theforeman/gists{/gist_id}","starred_url":"https://api.github.com/users/theforeman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/theforeman/subscriptions","organizations_url":"https://api.github.com/users/theforeman/orgs","repos_url":"https://api.github.com/users/theforeman/repos","events_url":"https://api.github.com/users/theforeman/events{/privacy}","received_events_url":"https://api.github.com/users/theforeman/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/theforeman/theforeman.org","description":"The new and improved Foreman website.","fork":false,"url":"https://api.github.com/repos/theforeman/theforeman.org","forks_url":"https://api.github.com/repos/theforeman/theforeman.org/forks","keys_url":"https://api.github.com/repos/theforeman/theforeman.org/keys{/key_id}","collaborators_url":"https://api.github.com/repos/theforeman/theforeman.org/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/theforeman/theforeman.org/teams","hooks_url":"https://api.github.com/repos/theforeman/theforeman.org/hooks","issue_events_url":"https://api.github.com/repos/theforeman/theforeman.org/issues/events{/number}","events_url":"https://api.github.com/repos/theforeman/theforeman.org/events","assignees_url":"https://api.github.com/repos/theforeman/theforeman.org/assignees{/user}","branches_url":"https://api.github.com/repos/theforeman/theforeman.org/branches{/branch}","tags_url":"https://api.github.com/repos/theforeman/theforeman.org/tags","blobs_url":"https://api.github.com/repos/theforeman/theforeman.org/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/theforeman/theforeman.org/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/theforeman/theforeman.org/git/refs{/sha}","trees_url":"https://api.github.com/repos/theforeman/theforeman.org/git/trees{/sha}","statuses_url":"https://api.github.com/repos/theforeman/theforeman.org/statuses/{sha}","languages_url":"https://api.github.com/repos/theforeman/theforeman.org/languages","stargazers_url":"https://api.github.com/repos/theforeman/theforeman.org/stargazers","contributors_url":"https://api.github.com/repos/theforeman/theforeman.org/contributors","subscribers_url":"https://api.github.com/repos/theforeman/theforeman.org/subscribers","subscription_url":"https://api.github.com/repos/theforeman/theforeman.org/subscription","commits_url":"https://api.github.com/repos/theforeman/theforeman.org/commits{/sha}","git_commits_url":"https://api.github.com/repos/theforeman/theforeman.org/git/commits{/sha}","comments_url":"https://api.github.com/repos/theforeman/theforeman.org/comments{/number}","issue_comment_url":"https://api.github.com/repos/theforeman/theforeman.org/issues/comments{/number}","contents_url":"https://api.github.com/repos/theforeman/theforeman.org/contents/{+path}","compare_url":"https://api.github.com/repos/theforeman/theforeman.org/compare/{base}...{head}","merges_url":"https://api.github.com/repos/theforeman/theforeman.org/merges","archive_url":"https://api.github.com/repos/theforeman/theforeman.org/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/theforeman/theforeman.org/downloads","issues_url":"https://api.github.com/repos/theforeman/theforeman.org/issues{/number}","pulls_url":"https://api.github.com/repos/theforeman/theforeman.org/pulls{/number}","milestones_url":"https://api.github.com/repos/theforeman/theforeman.org/milestones{/number}","notifications_url":"https://api.github.com/repos/theforeman/theforeman.org/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/theforeman/theforeman.org/labels{/name}","releases_url":"https://api.github.com/repos/theforeman/theforeman.org/releases{/id}","deployments_url":"https://api.github.com/repos/theforeman/theforeman.org/deployments","created_at":"2012-09-24T02:36:57Z","updated_at":"2016-09-06T07:22:12Z","pushed_at":"2016-09-19T07:55:11Z","git_url":"git://github.com/theforeman/theforeman.org.git","ssh_url":"git@github.com:theforeman/theforeman.org.git","clone_url":"https://github.com/theforeman/theforeman.org.git","svn_url":"https://github.com/theforeman/theforeman.org","homepage":"https://theforeman.org/","size":52839,"stargazers_count":51,"watchers_count":51,"language":"HTML","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":142,"mirror_url":null,"open_issues_count":26,"forks":142,"open_issues":26,"watchers":51,"default_branch":"gh-pages"}},"_links":{"self":{"href":"https://api.github.com/repos/theforeman/theforeman.org/pulls/686"},"html":{"href":"https://github.com/theforeman/theforeman.org/pull/686"},"issue":{"href":"https://api.github.com/repos/theforeman/theforeman.org/issues/686"},"comments":{"href":"https://api.github.com/repos/theforeman/theforeman.org/issues/686/comments"},"review_comments":{"href":"https://api.github.com/repos/theforeman/theforeman.org/pulls/686/comments"},"review_comment":{"href":"https://api.github.com/repos/theforeman/theforeman.org/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/theforeman/theforeman.org/pulls/686/commits"},"statuses":{"href":"https://api.github.com/repos/theforeman/theforeman.org/statuses/fc11faf70374057c25e177452e2ad41733711fdb"}}}}
{"actor":{"display_login":"dLobatog"}}