You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
484 B
20 lines
484 B
4 years ago
|
#!/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
|
||
|
|
||
|
|