-
Notifications
You must be signed in to change notification settings - Fork 51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ansible 2.2 service module requires systemd unit file for Ubuntu 16.04 #20
Comments
I've added a pr that switches to unit files for debian >= 8 |
Hi there; any update on this? |
This PR did a lot of the work (but was a bit Debian-centric—any systemd-based distro should use the unit file): #22 A new PR would be helpful—I should think we could get it to work with CentOS 7, Debian 8, Ubuntu 16.04, etc. (any systemd-default OS). |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Ansible 2.2 introduced some changes to the way the
service
module works with older init scripts, so the following happens under Ubuntu 16.04 if using Ansible 2.2+:For my roles that were encountering similar issues, I had to add a systemd unit file and this solved the issue because the
service
module can use that instead of the custom init script.See:
The text was updated successfully, but these errors were encountered: