{"action":"created","issue":{"url":"https://api.github.com/repos/geerlingguy/ansible-role-php-xhprof/issues/8","repository_url":"https://api.github.com/repos/geerlingguy/ansible-role-php-xhprof","labels_url":"https://api.github.com/repos/geerlingguy/ansible-role-php-xhprof/issues/8/labels{/name}","comments_url":"https://api.github.com/repos/geerlingguy/ansible-role-php-xhprof/issues/8/comments","events_url":"https://api.github.com/repos/geerlingguy/ansible-role-php-xhprof/issues/8/events","html_url":"https://github.com/geerlingguy/ansible-role-php-xhprof/issues/8","id":128933839,"number":8,"title":"Fix failing Travis tests - dirs are symlinks inside Travis","user":{"login":"geerlingguy","id":481677,"avatar_url":"https://avatars.githubusercontent.com/u/481677?v=3","gravatar_id":"","url":"https://api.github.com/users/geerlingguy","html_url":"https://github.com/geerlingguy","followers_url":"https://api.github.com/users/geerlingguy/followers","following_url":"https://api.github.com/users/geerlingguy/following{/other_user}","gists_url":"https://api.github.com/users/geerlingguy/gists{/gist_id}","starred_url":"https://api.github.com/users/geerlingguy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/geerlingguy/subscriptions","organizations_url":"https://api.github.com/users/geerlingguy/orgs","repos_url":"https://api.github.com/users/geerlingguy/repos","events_url":"https://api.github.com/users/geerlingguy/events{/privacy}","received_events_url":"https://api.github.com/users/geerlingguy/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-01-26T20:34:09Z","updated_at":"2016-03-01T18:20:41Z","closed_at":null,"body":"Travis' Ubuntu 12.04 instance uses symlinks for some of the PHP configuration paths, meaning I get failures like:\r\n\r\n```\r\nTASK: [ansible-role-php-xhprof | Ensure PHP configuration directories exist.] *** \r\nok: [localhost] => (item=/etc/php5/apache2/conf.d)\r\nfailed: [localhost] => (item=/etc/php5/cli/conf.d) => {\"failed\": true, \"gid\": 0, \"group\": \"root\", \"item\": \"/etc/php5/cli/conf.d\", \"mode\": \"0777\", \"owner\": \"root\", \"path\": \"/etc/php5/cli/conf.d\", \"size\": 9, \"state\": \"link\", \"uid\": 0}\r\nmsg: /etc/php5/cli/conf.d already exists as a link\r\nfailed: [localhost] => (item=/etc/php5/fpm/conf.d) => {\"failed\": true, \"gid\": 0, \"group\": \"root\", \"item\": \"/etc/php5/fpm/conf.d\", \"mode\": \"0777\", \"owner\": \"root\", \"path\": \"/etc/php5/fpm/conf.d\", \"size\": 9, \"state\": \"link\", \"uid\": 0}\r\nmsg: /etc/php5/fpm/conf.d already exists as a link\r\n```\r\n\r\nWe could switch to using an include file to do the xhprof.ini file copies, one at a time, and loop over the files (http://docs.ansible.com/ansible/playbooks_loops.html#loops-and-includes), and use `stat` or custom `command`s to determine if the dirs already exist before creating them.\r\n\r\nOr we could also switch to using a Dockerized test environment and bypass this weird Travis CI setup entirely. Or Debian could not be so wacky with having a ton of different configuration directories to configure the same thing by default. I can dream, can't I?"},"comment":{"url":"https://api.github.com/repos/geerlingguy/ansible-role-php-xhprof/issues/comments/190840578","html_url":"https://github.com/geerlingguy/ansible-role-php-xhprof/issues/8#issuecomment-190840578","issue_url":"https://api.github.com/repos/geerlingguy/ansible-role-php-xhprof/issues/8","id":190840578,"user":{"login":"geerlingguy","id":481677,"avatar_url":"https://avatars.githubusercontent.com/u/481677?v=3","gravatar_id":"","url":"https://api.github.com/users/geerlingguy","html_url":"https://github.com/geerlingguy","followers_url":"https://api.github.com/users/geerlingguy/followers","following_url":"https://api.github.com/users/geerlingguy/following{/other_user}","gists_url":"https://api.github.com/users/geerlingguy/gists{/gist_id}","starred_url":"https://api.github.com/users/geerlingguy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/geerlingguy/subscriptions","organizations_url":"https://api.github.com/users/geerlingguy/orgs","repos_url":"https://api.github.com/users/geerlingguy/repos","events_url":"https://api.github.com/users/geerlingguy/events{/privacy}","received_events_url":"https://api.github.com/users/geerlingguy/received_events","type":"User","site_admin":false},"created_at":"2016-03-01T18:20:41Z","updated_at":"2016-03-01T18:20:41Z","body":"Fixed in #12 "}}