refactor: put command onto single line
parent
6fac812440
commit
b045303f0c
|
@ -214,8 +214,7 @@ Copy the `hosts` file to each machine and append the contents to `/etc/hosts`:
|
||||||
```bash
|
```bash
|
||||||
while read IP FQDN HOST SUBNET; do
|
while read IP FQDN HOST SUBNET; do
|
||||||
scp hosts root@${HOST}:~/
|
scp hosts root@${HOST}:~/
|
||||||
ssh -n \
|
ssh -n root@${HOST} "cat hosts >> /etc/hosts"
|
||||||
root@${HOST} "cat hosts >> /etc/hosts"
|
|
||||||
done < machines.txt
|
done < machines.txt
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue