From 7fb23cb25188c3de919bc8e93c22415d38ed2263 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lucas=20Ple=C3=9F?= Date: Sun, 12 Jan 2020 18:15:19 +0100 Subject: [PATCH] added psmisc --- README.md | 5 +++-- ansible-ctdo/roles/packages/tasks/main.yml | 1 + 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index ff894cb..67d2af3 100644 --- a/README.md +++ b/README.md @@ -26,8 +26,9 @@ dhcp range is 10.10.0.20-10.10.0.80 ## useful commands ``` -for i in `seq 136 142`; do ssh root@10.10.0.$i reboot; done -for i in `seq 100 142`; do ssh root@10.10.0.$i "sh -c 'nohup stress -c 8 > /dev/null 2>&1 &'"; done +for i in `seq 136 142`; do echo $i; ssh root@10.10.0.$i reboot; done +for i in `seq 100 142`; do echo $i; ssh root@10.10.0.$i "sh -c 'nohup stress -c 8 > /dev/null 2>&1 &'"; done +for i in `seq 100 105`; do echo $i; ssh root@10.10.0.$i "sh -c 'nohup killall stress > /dev/null 2>&1 &'"; done ansible-playbook -i inventory site.yml --limit "node42" --tags "hostname,telegraf" -K --ask-pass diff --git a/ansible-ctdo/roles/packages/tasks/main.yml b/ansible-ctdo/roles/packages/tasks/main.yml index 90ae7d3..ac886b2 100644 --- a/ansible-ctdo/roles/packages/tasks/main.yml +++ b/ansible-ctdo/roles/packages/tasks/main.yml @@ -14,6 +14,7 @@ - htop - screen - iptraf-ng + - psmisc - name: remove packages tags: