QA: why is the reload systemd configuration
needed explicitly
#498
Comments
It looks like this workaround was added before the systemd module gained support for the daemon reload. Are you sure that the service module does support doing a systemd daemon reload? I can't find any reference to it in the ansible source code or documentation. |
hey @Crazybus , I'm doing similar stuff in my roles normally, ie: |
I'm having issues with this as well, don't really have a solution yet. I also tried swapping out the
Going to do some more digging but I'd guess it's also an issue with the init file for ES within systemd too. This is utilizing Docker( |
@nickhammond this topic is more of a QA request, but just so it happens I did have exactly the same set of issues you are facing elsewhere, so let me just answer that: systemd is no go on docker I'm afraid. Not that I tried everything but was close to, and that still didn't work. There are topics covering that, and in basis you have to have a docker base image built with systemd bus in place and/or privileged container, but even that wasn't working reliably. My general manifest is that docker is not exactly suited to be provisioned by ansible (except for specific cases where it works of course ), and as the general approach it wants you to use single machine per service. So just find one that has ES already installed and add it to your dockerfile and configs I'd say. |
@grzegorznowak Ah, so I'm not the only one. That makes sense that it's Docker specific too as I'm provisioning in a Vagrant VM and it works fine. I'll tweak how that's running in the CI and go from there, thanks much! |
I've been using this
in my elasticsearch role at work for a while now. Can confirm it works. |
Hey guys, in this file/line:
ansible-elasticsearch/handlers/main.yml
Line 2 in fb760f4
reload of the underlying service agent should be handled by the
service
module, so why we need that ?The text was updated successfully, but these errors were encountered: