Closed geerlingguy closed 7 years ago
I've added a pr that switches to unit files for debian >= 8
Hi there; any update on this? Would you accept a PR with this change?
This PR did a lot of the work (but was a bit Debian-centric—any systemd-based distro should use the unit file): https://github.com/arknoll/ansible-role-selenium/pull/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).
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: