jdauphant/ansible-role-nginx

Attempting to start nginx fails with rc=1 on Ubuntu 16.04.1 (Xenial Xerus)

Closed this issue · 1 comments

When this role attempts to start nginx by using Ansible's service module to start the service defined by the variable nginx_service_name, it fails, returning code 1, claiming that there is 'No such file or directory':

fatal: [default]: FAILED! => {"changed": false, "failed": true, "msg": "Error when trying to enable nginx: rc=1 Failed to execute operation: No such file or directory\n"}

nginx is not recognised as a service by service nor systemctl.

Closed. ansible_os_family was set to Ubuntu, not Debian.