Remove hosts.add from here
parent
b82b8c88cd
commit
4bbe35b83a
|
@ -1,7 +0,0 @@
|
|||
192.168.5.12 mature2
|
||||
192.168.5.13 mature3
|
||||
192.168.5.14 ripper4
|
||||
192.168.5.15 ripper5
|
||||
192.168.5.16 ripper6
|
||||
192.168.5.17 ripper7
|
||||
192.168.5.20 willow1
|
|
@ -61,6 +61,6 @@ elif ! grep -q '^PermitRootLogin without-password' /etc/ssh/sshd_config; then
|
|||
fi
|
||||
EOF
|
||||
|
||||
(ssh root@$play_host 'cat /etc/hosts'; grep -v $node_name etc/hosts.add) | sort | uniq > tmp$$
|
||||
(ssh root@$play_host 'cat /etc/hosts'; grep -v $node_name config/hosts.add) | sort | uniq > tmp$$
|
||||
scp tmp$$ root@$play_host:/etc/hosts
|
||||
rm tmp$$
|
||||
|
|
Loading…
Reference in New Issue