add requirements.yml to easy install required roles and add hint to Readme
This commit is contained in:
parent
4d9c0b6bfe
commit
9a0b708139
|
@ -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
|
||||
```
|
||||
```
|
||||
|
|
|
@ -0,0 +1,7 @@
|
|||
# install some required roles with
|
||||
# ansible-galaxy install -r requirements.yml
|
||||
|
||||
|
||||
- src: dresden-weekly.network-interfaces
|
||||
|
||||
- src: dj-wasabi.telegraf
|
Loading…
Reference in New Issue