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.




--
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]<mailto:[email protected]>.
To post to this group, send email to 
[email protected]<mailto:[email protected]>.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/607ee173-0b70-4052-862c-a2053425081d%40googlegroups.com<https://groups.google.com/d/msgid/ansible-project/607ee173-0b70-4052-862c-a2053425081d%40googlegroups.com?utm_medium=email&utm_source=footer>.
For more options, visit https://groups.google.com/d/optout.

-- 
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/DM5PR0801MB3656CD63BF1AC2415F384646A61D0%40DM5PR0801MB3656.namprd08.prod.outlook.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to