Subject: [ansible-project] Ansible fails to start services


how are you starting the services and what comes up qhen you it with -vvvv ? a lot of services after a file change lile this require a daemon-reload

Jonathan Lozada De La Matta on mobile

________________________________
From: [EMAIL PROTECTED] on behalf of Borja Salamanca Dominguez <[EMAIL PROTECTED]>
Sent: Monday, May 27, 2019 11:13 AM
To: Ansible Project
Subject: [ansible-project] Ansible fails to start services

Hello Ansible Group, i recently had problems while i try to launch any services via Ansible playbook.
I sent via Ansible these services to etc/systemd/system/zookeeper.services and /etc/systemd/system/kafka.services

zookeeper.service:

[Unit]
Description=Apache Zookeeper server (Kafka)
Documentation=http://zookeeper.apache.org
Requires=network.target remote-fs.target
After=network.target remote-fs.target

[Service]
User=borja
ExecStart=/home/borja/inventory/Innovery/zookeeper/bin/zkServer.sh start /home/borja/inventory/Innovery/zookeeper/config/zookeeper.properties
ExecStop=/home/borja/inventory/Innovery/zookeeper/bin/zkServer.sh stop

[Install]
WantedBy=multi-user.target
kafka.service:

[Unit]
Description=Apache Kafka server (broker)
Documentation=http://kafka.apache.org/documentation.html
Requires=network.target remote-fs.target
After=network.target remote-fs.target

[Service]
User=borja
ExecStart=/home/borja/inventory/Innovery/Kafka/bin/kafka-server-start.sh /home/borja/inventory/Innovery/Kafka/config/server.properties
ExecStop=/home/borja/inventory/Innovery/Kafka/bin/kafka-server-stop.sh

[Install]
WantedBy=multi-user.target
The Kafka/Zookeeper installation procedure consists in decompress kafka .tar.gz file and zookeeper .tar.gz file.
Looks like it doesn't work at all, the services never start via Ansible on the remote machine, but if i launch these services on the remote machine they work perfectly.
It is making me crazy! Any help?

Thanks, Ansible Group.
--
To post to this group, send email to [EMAIL PROTECTED]<mailto:[EMAIL PROTECTED]>.

--
To post to this group, send email to [EMAIL PROTECTED].