Say my target machine has an OS running systemd, like CentOS 7, and I want to start a sysv service in /etc/init.d.
These tickets suggest I pass use=service to the service module: https://github.com/ansible/ansible-modules-core/issues/915 https://github.com/ansible/ansible/issues/25440 This used to work on Ansible 2.2, but no longer seems to work in 2.4. Is there a different way? - name: start foo service service: name=foo state=started enabled=yes use=service This returns an error: systemd could not find the requested service \"'foo'\" -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/722870f0-5804-4e9a-8816-2b8a4e89bc47%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
