{"action":"closed","issue":{"url":"https://api.github.com/repos/Batix/rundeck-ansible-plugin/issues/21","repository_url":"https://api.github.com/repos/Batix/rundeck-ansible-plugin","labels_url":"https://api.github.com/repos/Batix/rundeck-ansible-plugin/issues/21/labels{/name}","comments_url":"https://api.github.com/repos/Batix/rundeck-ansible-plugin/issues/21/comments","events_url":"https://api.github.com/repos/Batix/rundeck-ansible-plugin/issues/21/events","html_url":"https://github.com/Batix/rundeck-ansible-plugin/issues/21","id":151065170,"number":21,"title":"The plugins is trying to create the data directory in / (root) instead of /tmp/rundeck/ansible-hosts.*.","user":{"login":"ecsumed","id":9958100,"avatar_url":"https://avatars.githubusercontent.com/u/9958100?v=3","gravatar_id":"","url":"https://api.github.com/users/ecsumed","html_url":"https://github.com/ecsumed","followers_url":"https://api.github.com/users/ecsumed/followers","following_url":"https://api.github.com/users/ecsumed/following{/other_user}","gists_url":"https://api.github.com/users/ecsumed/gists{/gist_id}","starred_url":"https://api.github.com/users/ecsumed/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ecsumed/subscriptions","organizations_url":"https://api.github.com/users/ecsumed/orgs","repos_url":"https://api.github.com/users/ecsumed/repos","events_url":"https://api.github.com/users/ecsumed/events{/privacy}","received_events_url":"https://api.github.com/users/ecsumed/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Batix/rundeck-ansible-plugin/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2016-04-26T07:40:31Z","updated_at":"2016-05-06T18:17:12Z","closed_at":"2016-05-06T18:17:12Z","body":"Don't know why but the plugin is creating a data directory in \"/\" (root) instead of /tmp/rundeck/\"ansible-hosts/\"\r\n\r\nThis is the ansible log when it was trying to create a \"data\" directory in \"/\". \r\n`2016-04-26 06:27:34,810 p=1556 u=rundeck |  invalid output was: Traceback (most recent call last):\r\n  File \"/var/lib/rundeck/.ansible/tmp/ansible-tmp-1461652054.64-12936011354221/file\", line 1675, in <module>\r\n    main()\r\n  File \"/var/lib/rundeck/.ansible/tmp/ansible-tmp-1461652054.64-12936011354221/file\", line 216, in main\r\n    os.mkdir(curpath)\r\nOSError: [Errno 13] Permission denied: '/data'`\r\n\r\nThis is the ansible log after I created the '/data' directory in root (just to see if it works). \r\n`2016-04-26 06:46:05,945 p=1642 u=rundeck |  TASK: [template src=host-tpl.j2 dest=\"data/{{inventory_hostname}}\"] *********** \r\n2016-04-26 06:46:06,172 p=1642 u=rundeck |  failed: [my_ip -> 127.0.0.1] => {\"failed\": true}\r\n2016-04-26 06:46:06,173 p=1642 u=rundeck |  msg: Destination directory data does not exist`\r\n\r\nObviously, \"/tmp/rundeck/ansible-hosts/data\" doesn't exist because data was created in \"/\" (root).\r\n\r\n`su rundeck -s /bin/bash -c \"ansible all -m ping\"` works without any issues.\r\n\r\nIs there something that I'm missing? \r\n\r\nThis is all on a fresh installation of Debian 8 on a VM via vagrant.\r\nansible 1.7.2\r\nansible-plugin-1.2.2"}}