Skip to content
This repository has been archived by the owner on Aug 13, 2024. It is now read-only.

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

Closed
galexite opened this issue Aug 24, 2016 · 1 comment
Closed

Comments

@galexite
Copy link

galexite commented Aug 24, 2016

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.

@galexite
Copy link
Author

galexite commented Aug 24, 2016

Closed. ansible_os_family was set to Ubuntu, not Debian.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant