Remove hosts.add from here

master
Vitaliy Filippov 2020-06-09 17:09:42 +03:00
parent b82b8c88cd
commit 4bbe35b83a
2 changed files with 1 additions and 8 deletions

View File

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

View File

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