diff --git a/README.md b/README.md index 3581f7e..e47655b 100644 --- a/README.md +++ b/README.md @@ -25,11 +25,16 @@ dhcp range is 10.10.0.20-10.10.0.80 ## useful commands -``` +```bash 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 for i in `seq 100 143`; do echo $i; ssh root@10.10.0.$i "sh -c 'nohup poweroff > /dev/null 2>&1 &'"; done + +# install required roles from ansible-galaxy: +ansible-galaxy install -r requirements.yml + +# run ansible-playbook only on node42 with only tagged roles hostname and telegraf ansible-playbook -i inventory site.yml --limit "node42" --tags "hostname,telegraf" -K --ask-pass -``` \ No newline at end of file +``` diff --git a/ansible-ctdo/requirements.yml b/ansible-ctdo/requirements.yml new file mode 100644 index 0000000..fcc4345 --- /dev/null +++ b/ansible-ctdo/requirements.yml @@ -0,0 +1,7 @@ +# install some required roles with +# ansible-galaxy install -r requirements.yml + + +- src: dresden-weekly.network-interfaces + +- src: dj-wasabi.telegraf