ansible + &

16 views
Skip to first unread message

Christophe Dumont

unread,
Jan 22, 2016, 12:00:30 PM1/22/16
to Ansible Project
I'd like to start jmeter on emote hosts and the command run in backjground, so i added & to the playbook.

script1 ok
 - hosts: JMETER_REMOTE_VM
  sudo: True
  user: xxxx
  tasks:
  - shell: chdir=~/apache-jmeter-2.13/bin/ bash jmeter-server

script2 not ok
- hosts: JMETER_REMOTE_VM
  sudo: True
  user: xxxx
  tasks:
  - shell: chdir=~/apache-jmeter-2.13/bin/ bash jmeter-server &


Christophe Dumont

unread,
Jan 22, 2016, 12:00:30 PM1/22/16
to Ansible Project
I'd like to start jmeter on remote host and run the command in background but the command "&" doesn't work

this playbook starts jmeter :

 - hosts: JMETER_REMOTE_VM
  sudo: True
  user: xxxx
  tasks:
  - shell: chdir=~/apache-jmeter-2.13/bin/ bash jmeter-server


but this one doesn't :
Reply all
Reply to author
Forward
0 new messages