#!/bin/sh #nmap -n -sn 172.25.0.* -oG - | awk '/Up$/{print $2}' sudo apt-get update -y # To get the latest package lists sudo apt install ansible -y sudo apt install sshpass -y sudo sed -i "11i host_key_checking = False" /etc/ansible/ansible.cfg ansible-playbook -u docker -i inventory.yml test.yml -f 5 --ask-pass --ask-become-pass #sudo tcpdump -i eth0 #now interrupt the process. get its PID: #pid=$(ps -e | pgrep tcpdump) #echo $pid # #interrupt it: #sleep 5 #kill -2 $pid