mirror of
https://github.com/khuedoan/homelab.git
synced 2025-07-28 13:48:55 +07:00
refactor(docs): apply the Diátaxis framework
Squashed commit of the following: commit 257867f196376df55fa0f57edbdf33967b1da04e Author: Khue Doan <mail@khuedoan.com> Date: Sun Sep 18 16:45:42 2022 +0700 refactor(docs): apply the Diátaxis framework
This commit is contained in:
25
docs/how-to-guides/run-commands-on-multiple-nodes.md
Normal file
25
docs/how-to-guides/run-commands-on-multiple-nodes.md
Normal file
@ -0,0 +1,25 @@
|
||||
# Run commands on multiple nodes
|
||||
|
||||
Use [ansible-console](https://docs.ansible.com/ansible/latest/cli/ansible-console.html):
|
||||
|
||||
```sh
|
||||
cd metal
|
||||
make console
|
||||
```
|
||||
|
||||
Then enter the command(s) you want to run.
|
||||
|
||||
!!! example
|
||||
|
||||
`root@all (4)[f:5]$ uptime`
|
||||
|
||||
```console
|
||||
metal0 | CHANGED | rc=0 >>
|
||||
10:52:02 up 2 min, 1 user, load average: 0.17, 0.15, 0.06
|
||||
metal1 | CHANGED | rc=0 >>
|
||||
10:52:02 up 2 min, 1 user, load average: 0.14, 0.11, 0.04
|
||||
metal3 | CHANGED | rc=0 >>
|
||||
10:52:02 up 2 min, 1 user, load average: 0.03, 0.02, 0.00
|
||||
metal2 | CHANGED | rc=0 >>
|
||||
10:52:02 up 2 min, 1 user, load average: 0.06, 0.06, 0.02
|
||||
```
|
Reference in New Issue
Block a user