{"action":"created","issue":{"url":"https://api.github.com/repos/geerlingguy/ansible-role-php/issues/151","repository_url":"https://api.github.com/repos/geerlingguy/ansible-role-php","labels_url":"https://api.github.com/repos/geerlingguy/ansible-role-php/issues/151/labels{/name}","comments_url":"https://api.github.com/repos/geerlingguy/ansible-role-php/issues/151/comments","events_url":"https://api.github.com/repos/geerlingguy/ansible-role-php/issues/151/events","html_url":"https://github.com/geerlingguy/ansible-role-php/issues/151","id":179191835,"number":151,"title":"php-fpm cannot start on CentOS 7","user":{"login":"badgio","id":1500070,"avatar_url":"https://avatars.githubusercontent.com/u/1500070?v=3","gravatar_id":"","url":"https://api.github.com/users/badgio","html_url":"https://github.com/badgio","followers_url":"https://api.github.com/users/badgio/followers","following_url":"https://api.github.com/users/badgio/following{/other_user}","gists_url":"https://api.github.com/users/badgio/gists{/gist_id}","starred_url":"https://api.github.com/users/badgio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/badgio/subscriptions","organizations_url":"https://api.github.com/users/badgio/orgs","repos_url":"https://api.github.com/users/badgio/repos","events_url":"https://api.github.com/users/badgio/events{/privacy}","received_events_url":"https://api.github.com/users/badgio/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-09-26T10:27:29Z","updated_at":"2016-11-21T04:10:57Z","closed_at":null,"body":"/lib/init/vars.sh is included in fpm-init.j2 but does not exist on CentOS Linux 7 (Core).\n\nMay affect all RHEL based distros\nhttps://github.com/buddycloud/deprecated-buddycloud-server/issues/69\nhttps://github.com/elastic/logstash-forwarder/issues/75\n\n```\nTASK [geerlingguy.php : Ensure php-fpm is started and enabled at boot (if configured).] ***\nfatal: [host]: FAILED! => {\"changed\": false, \"failed\": true, \"msg\": \"Job for php-fpm.service failed because the control process exited with error code. See \\\"systemctl status php-fpm.service\\\" and \\\"journalctl -xe\\\" for details.\\n\"}\n```\n\n```\n[user@host ~]$ sudo systemctl status php-fpm.service\n● php-fpm.service - LSB: starts php-fpm\n   Loaded: loaded (/etc/rc.d/init.d/php-fpm)\n   Active: failed (Result: exit-code) since Mon 2016-09-26 11:09:48 BST; 8min ago\n     Docs: man:systemd-sysv-generator(8)\n  Process: 28981 ExecStart=/etc/rc.d/init.d/php-fpm start (code=exited, status=1/FAILURE)\n\nSep 26 11:09:48 host systemd[1]: Starting LSB: starts php-fpm...\nSep 26 11:09:48 host php-fpm[28981]: /etc/rc.d/init.d/php-fpm: line 30: /lib/init/vars.sh: No such file or directory\nSep 26 11:09:48 host systemd[1]: php-fpm.service: control process exited, code=exited status=1\nSep 26 11:09:48 host systemd[1]: Failed to start LSB: starts php-fpm.\nSep 26 11:09:48 host systemd[1]: Unit php-fpm.service entered failed state.\nSep 26 11:09:48 host systemd[1]: php-fpm.service failed.\n```\n\nCurrent pre_tasks to get this working\n\n```\n  pre_tasks:\n    - name: Ensure redhat-lsb-core is installed\n      yum: name=redhat-lsb-core state=present\n    - name: Ensure /lib/init directory exists\n      file: path=/lib/init state=directory\n    - stat: path=/lib/init/vars.sh\n      register: vars_sh_file\n    - name: Ensure /lib/init/vars.sh exists\n      file: path=/lib/init/vars.sh state=touch owner=root group=root mode=0555\n      when: not vars_sh_file.stat.exists\n```\n"},"comment":{"url":"https://api.github.com/repos/geerlingguy/ansible-role-php/issues/comments/261838244","html_url":"https://github.com/geerlingguy/ansible-role-php/issues/151#issuecomment-261838244","issue_url":"https://api.github.com/repos/geerlingguy/ansible-role-php/issues/151","id":261838244,"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-11-21T04:10:57Z","updated_at":"2016-11-21T04:10:57Z","body":"Potentially related? https://github.com/geerlingguy/ansible-role-php/pull/162\r\n\r\nThe package installer should install the php-fpm init script/unit file :/"}}
{"actor":{"display_login":"geerlingguy"}}