{"action":"created","issue":{"url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/1558","labels_url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/1558/labels{/name}","comments_url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/1558/comments","events_url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/1558/events","html_url":"https://github.com/ansible/ansible-modules-core/issues/1558","id":89522769,"number":1558,"title":"add --installroot option to yum module ","user":{"login":"MartinDE90","id":12951746,"avatar_url":"https://avatars.githubusercontent.com/u/12951746?v=3","gravatar_id":"","url":"https://api.github.com/users/MartinDE90","html_url":"https://github.com/MartinDE90","followers_url":"https://api.github.com/users/MartinDE90/followers","following_url":"https://api.github.com/users/MartinDE90/following{/other_user}","gists_url":"https://api.github.com/users/MartinDE90/gists{/gist_id}","starred_url":"https://api.github.com/users/MartinDE90/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MartinDE90/subscriptions","organizations_url":"https://api.github.com/users/MartinDE90/orgs","repos_url":"https://api.github.com/users/MartinDE90/repos","events_url":"https://api.github.com/users/MartinDE90/events{/privacy}","received_events_url":"https://api.github.com/users/MartinDE90/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ansible/ansible-modules-core/labels/feature_idea","name":"feature_idea","color":"006b75"},{"url":"https://api.github.com/repos/ansible/ansible-modules-core/labels/P3","name":"P3","color":"fef2c0"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-06-19T09:59:13Z","updated_at":"2015-06-29T08:13:47Z","closed_at":null,"body":"<b>Issue Type:</b> Feature Idea\r\n<b>Ansible Version:</b> 1.9.1\r\n<b>Ansible Configuration:</b> nothing changed\r\n<b>Environment:</b> RHEL/CentOS 7\r\n<b>Summary:</b>\r\nI'm trying to keep some software installed into a non-standard directory. Currently using the yum module I can't specify an alternative installroot path. \r\n<b>Expected Results:</b>\r\nI would like to be able to add --installroot option like I can do this with yum in linux. "},"comment":{"url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/comments/116517251","html_url":"https://github.com/ansible/ansible-modules-core/issues/1558#issuecomment-116517251","issue_url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/1558","id":116517251,"user":{"login":"MartinDE90","id":12951746,"avatar_url":"https://avatars.githubusercontent.com/u/12951746?v=3","gravatar_id":"","url":"https://api.github.com/users/MartinDE90","html_url":"https://github.com/MartinDE90","followers_url":"https://api.github.com/users/MartinDE90/followers","following_url":"https://api.github.com/users/MartinDE90/following{/other_user}","gists_url":"https://api.github.com/users/MartinDE90/gists{/gist_id}","starred_url":"https://api.github.com/users/MartinDE90/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MartinDE90/subscriptions","organizations_url":"https://api.github.com/users/MartinDE90/orgs","repos_url":"https://api.github.com/users/MartinDE90/repos","events_url":"https://api.github.com/users/MartinDE90/events{/privacy}","received_events_url":"https://api.github.com/users/MartinDE90/received_events","type":"User","site_admin":false},"created_at":"2015-06-29T08:13:47Z","updated_at":"2015-06-29T08:13:47Z","body":"I think there is a little mismatch:\r\n        install_root=dict(required=False, type='str'),\r\n        installroot = params['installroot']\r\n\r\nI've changed this to params['install_root']. After that, installing work fine, but I can't remove this package with state=absent. \r\nI'm not familiar with python, but I think there is a problem with is_installed function. \r\n\r\nThanks!\r\n"}}