#!/bin/bash if pgrep sipp >/dev/null then echo "sipp is running" else cd /home/pi/sipp ./sipp -sn uac_pcap {{ hostvars[groups['sipserver'][0]].ansible_host }} -bg -l 40 fi