Hi,
I am having an issue trying to start the tomcat in jasper server:
When i run this command locally in the virtual machine it works:
sudo /opt/jasperreports-server-7.9.0/ctlscript.sh stop tomcat
sudo /opt/jasperreports-server-7.9.0/ctlscript.sh start tomcat
And the status is running.
But when i create a playbook with two tasks, I have the attached output (Tomcat started)
and when i run the command: "sudo /opt/jasperreports-server-7.9.0/ctlscript.sh status tomcat" the status is not running.
- name: Stop tomcat
shell: /opt/jasperreports-server-7.9.0/ctlscript.sh stop tomcat
become_method: sudo
- name: Start tomcat
shell: /opt/jasperreports-server-7.9.0/ctlscript.sh start tomcat
become_method: sudo
So it starts but it is not running, when i run the playbook.
Any idea?
Thanks,