diff --git a/etc/hosts.add b/etc/hosts.add deleted file mode 100644 index 13c36b9..0000000 --- a/etc/hosts.add +++ /dev/null @@ -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 diff --git a/general.sh b/general.sh index 4680cd6..f4c5e4e 100755 --- a/general.sh +++ b/general.sh @@ -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$$