add requirements.yml to easy install required roles and add hint to Readme

This commit is contained in:
ctdo hpc master 2020-01-14 21:08:45 +01:00
parent 4d9c0b6bfe
commit 9a0b708139
2 changed files with 14 additions and 2 deletions

View File

@ -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
```
```

View File

@ -0,0 +1,7 @@
# install some required roles with
# ansible-galaxy install -r requirements.yml
- src: dresden-weekly.network-interfaces
- src: dj-wasabi.telegraf