{"action":"created","issue":{"url":"https://api.github.com/repos/geerlingguy/ansible-role-nginx/issues/41","labels_url":"https://api.github.com/repos/geerlingguy/ansible-role-nginx/issues/41/labels{/name}","comments_url":"https://api.github.com/repos/geerlingguy/ansible-role-nginx/issues/41/comments","events_url":"https://api.github.com/repos/geerlingguy/ansible-role-nginx/issues/41/events","html_url":"https://github.com/geerlingguy/ansible-role-nginx/issues/41","id":127882344,"number":41,"title":"\"Job for nginx.service failed...\" while installing on RHEL7","user":{"login":"aleksandr-vin","id":223293,"avatar_url":"https://avatars.githubusercontent.com/u/223293?v=3","gravatar_id":"","url":"https://api.github.com/users/aleksandr-vin","html_url":"https://github.com/aleksandr-vin","followers_url":"https://api.github.com/users/aleksandr-vin/followers","following_url":"https://api.github.com/users/aleksandr-vin/following{/other_user}","gists_url":"https://api.github.com/users/aleksandr-vin/gists{/gist_id}","starred_url":"https://api.github.com/users/aleksandr-vin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aleksandr-vin/subscriptions","organizations_url":"https://api.github.com/users/aleksandr-vin/orgs","repos_url":"https://api.github.com/users/aleksandr-vin/repos","events_url":"https://api.github.com/users/aleksandr-vin/events{/privacy}","received_events_url":"https://api.github.com/users/aleksandr-vin/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/geerlingguy/ansible-role-nginx/labels/question","name":"question","color":"cc317c"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2016-01-21T09:36:57Z","updated_at":"2016-01-21T15:51:59Z","closed_at":null,"body":"```\r\n[17:59:28][Step 5/7] \r\n[17:59:28][Step 5/7] TASK: [ansible-role-nginx | Include OS-specific variables.] ******************* \r\n[17:59:28][Step 5/7] ok: [SRV2-ELOG-VM52] => {\"ansible_facts\": {\"__nginx_user\": \"nginx\", \"nginx_conf_path\": \"/etc/nginx/conf.d\", \"nginx_default_vhost_path\": \"/etc/nginx/conf.d/default.conf\", \"nginx_vhost_path\": \"/etc/nginx/conf.d\"}}\r\n[17:59:28][Step 5/7] \r\n[17:59:28][Step 5/7] TASK: [ansible-role-nginx | Define nginx_user.] ******************************* \r\n[17:59:28][Step 5/7] ok: [SRV2-ELOG-VM52] => {\"ansible_facts\": {\"nginx_user\": \"nginx\"}}\r\n[17:59:28][Step 5/7] \r\n[17:59:28][Step 5/7] TASK: [ansible-role-nginx | Enable nginx repo.] ******************************* \r\n[17:59:28][Step 5/7] changed: [SRV2-ELOG-VM52] => {\"changed\": true, \"checksum\": \"bff0bd4df6b8bccfb86c1b03fc1f1bc93fb7a0f2\", \"dest\": \"/etc/yum.repos.d/nginx.repo\", \"gid\": 0, \"group\": \"root\", \"md5sum\": \"c8473d7b3b6920ac8d59ac3ae6e843e0\", \"mode\": \"0644\", \"owner\": \"root\", \"secontext\": \"system_u:object_r:system_conf_t:s0\", \"size\": 99, \"src\": \"/root/.ansible/tmp/ansible-tmp-1453301957.63-203060419101425/source\", \"state\": \"file\", \"uid\": 0}\r\n[17:59:28][Step 5/7] \r\n[17:59:28][Step 5/7] TASK: [ansible-role-nginx | Ensure nginx is installed.] *********************** \r\n[17:59:33][Step 5/7] changed: [SRV2-ELOG-VM52] => {\"changed\": true, \"msg\": \"\", \"rc\": 0, \"results\": [\"Resolving Dependencies\\n--> Running transaction check\\n---> Package nginx.x86_64 1:1.8.0-1.el7.ngx will be installed\\n--> Finished Dependency Resolution\\n\\nDependencies Resolved\\n\\n================================================================================\\n Package        Arch            Version                    Repository      Size\\n================================================================================\\nInstalling:\\n nginx          x86_64          1:1.8.0-1.el7.ngx          nginx          369 k\\n\\nTransaction Summary\\n================================================================================\\nInstall  1 Package\\n\\nTotal download size: 369 k\\nInstalled size: 889 k\\nDownloading packages:\\nRunning transaction check\\nRunning transaction test\\nTransaction test succeeded\\nRunning transaction\\n  Installing : 1:nginx-1.8.0-1.el7.ngx.x86_64                               1/1 \\n----------------------------------------------------------------------\\n\\nThanks for using nginx!\\n\\nPlease find the official documentation for nginx here:\\n* http://nginx.org/en/docs/\\n\\nCommercial subscriptions for nginx are available on:\\n* http://nginx.com/products/\\n\\n----------------------------------------------------------------------\\n  Verifying  : 1:nginx-1.8.0-1.el7.ngx.x86_64                               1/1 \\n\\nInstalled:\\n  nginx.x86_64 1:1.8.0-1.el7.ngx                                                \\n\\nComplete!\\n\"]}\r\n[17:59:33][Step 5/7] \r\n[17:59:33][Step 5/7] TASK: [ansible-role-nginx | Update apt cache.] ******************************** \r\n[17:59:33][Step 5/7] skipping: [SRV2-ELOG-VM52]\r\n[17:59:33][Step 5/7] \r\n[17:59:33][Step 5/7] TASK: [ansible-role-nginx | Ensure nginx is installed.] *********************** \r\n[17:59:33][Step 5/7] skipping: [SRV2-ELOG-VM52]\r\n[17:59:33][Step 5/7] \r\n[17:59:33][Step 5/7] TASK: [ansible-role-nginx | Remove default nginx vhost config file (if configured).] *** \r\n[17:59:33][Step 5/7] changed: [SRV2-ELOG-VM52] => {\"changed\": true, \"path\": \"/etc/nginx/conf.d/default.conf\", \"state\": \"absent\"}\r\n[17:59:33][Step 5/7] \r\n[17:59:33][Step 5/7] TASK: [ansible-role-nginx | Add managed vhost config file (if any vhosts are configured).] *** \r\n[17:59:33][Step 5/7] changed: [SRV2-ELOG-VM52] => {\"changed\": true, \"checksum\": \"0516a135a2151f0437ee4ebc160fc849600e8f2b\", \"dest\": \"/etc/nginx/conf.d/vhosts.conf\", \"gid\": 0, \"group\": \"root\", \"md5sum\": \"f9c8987ed3878b97a2a047122f64323f\", \"mode\": \"0644\", \"owner\": \"root\", \"secontext\": \"system_u:object_r:httpd_config_t:s0\", \"size\": 407, \"src\": \"/root/.ansible/tmp/ansible-tmp-1453301968.32-140063811035792/source\", \"state\": \"file\", \"uid\": 0}\r\n[17:59:33][Step 5/7] \r\n[17:59:33][Step 5/7] TASK: [ansible-role-nginx | Remove managed vhost config file (if no vhosts are configured).] *** \r\n[17:59:33][Step 5/7] skipping: [SRV2-ELOG-VM52]\r\n[17:59:33][Step 5/7] \r\n[17:59:33][Step 5/7] TASK: [ansible-role-nginx | Copy nginx configuration in place.] *************** \r\n[17:59:33][Step 5/7] changed: [SRV2-ELOG-VM52] => {\"changed\": true, \"checksum\": \"a4ed36ad2818c5ed8dce3e445ea1eb28239d15ad\", \"dest\": \"/etc/nginx/nginx.conf\", \"gid\": 0, \"group\": \"root\", \"md5sum\": \"af905d0576cc9ac8844823806b19b2bc\", \"mode\": \"0644\", \"owner\": \"root\", \"secontext\": \"system_u:object_r:httpd_config_t:s0\", \"size\": 776, \"src\": \"/root/.ansible/tmp/ansible-tmp-1453301969.84-29133007962817/source\", \"state\": \"file\", \"uid\": 0}\r\n[17:59:33][Step 5/7] \r\n[17:59:33][Step 5/7] TASK: [ansible-role-nginx | Ensure nginx is started and enabled to start at boot.] *** \r\n[17:59:33][Step 5/7] failed: [SRV2-ELOG-VM52] => {\"failed\": true}\r\n[17:59:33][Step 5/7] msg: Job for nginx.service failed. See 'systemctl status nginx.service' and 'journalctl -xn' for details.\r\n```\r\n\r\nTried ansible 1.9.1 and 19.4."},"comment":{"url":"https://api.github.com/repos/geerlingguy/ansible-role-nginx/issues/comments/173614100","html_url":"https://github.com/geerlingguy/ansible-role-nginx/issues/41#issuecomment-173614100","issue_url":"https://api.github.com/repos/geerlingguy/ansible-role-nginx/issues/41","id":173614100,"user":{"login":"aleksandr-vin","id":223293,"avatar_url":"https://avatars.githubusercontent.com/u/223293?v=3","gravatar_id":"","url":"https://api.github.com/users/aleksandr-vin","html_url":"https://github.com/aleksandr-vin","followers_url":"https://api.github.com/users/aleksandr-vin/followers","following_url":"https://api.github.com/users/aleksandr-vin/following{/other_user}","gists_url":"https://api.github.com/users/aleksandr-vin/gists{/gist_id}","starred_url":"https://api.github.com/users/aleksandr-vin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aleksandr-vin/subscriptions","organizations_url":"https://api.github.com/users/aleksandr-vin/orgs","repos_url":"https://api.github.com/users/aleksandr-vin/repos","events_url":"https://api.github.com/users/aleksandr-vin/events{/privacy}","received_events_url":"https://api.github.com/users/aleksandr-vin/received_events","type":"User","site_admin":false},"created_at":"2016-01-21T15:51:59Z","updated_at":"2016-01-21T15:51:59Z","body":"Maybe add a pidfile removing to _validation_ handler command, what do you think?\r\n\r\nSorry for such huge pile of comments."}}