[ansible-project] How to execute a backend java program?

2016-09-20 Thread
Hi, I use ansible 2.0.0. and I want start a java web program which use spring boot and compile as a jar file, but it always don't work. I can execute "nohup java -jar xxx.jar &" on the target machine (the target machine is centos 7),but when I execute through ansible, it don't work. my

[ansible-project] I can't execute java program

2016-09-27 Thread
Hi, May I ask for execute java program with ansible? I execute a java program (spring boot project, a jar package for java web site) ansible ofbiz1 -m shell -a "chdir=/opt/CassEC-OrderSupports nohup java -jar product.jar &", it echo success ,but in fact,it do nothing! the java program