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.