|
@@ -9,7 +9,7 @@ echo "%Ansible ALL=(ALL) NOPASSWD: ALL" > /etc/sudoers.d/Ansible
|
|
|
echo "Set remote access"
|
|
|
mkdir /home/ansible/.ssh
|
|
|
chmod 700 /home/ansible/.ssh
|
|
|
-curl -O /home/ansible/.ssh/authorized_keys https://git.xo.nl/marcel/deployment/raw/master/ansible.pub
|
|
|
+curl -o /home/ansible/.ssh/authorized_keys https://git.xo.nl/marcel/deployment/raw/master/ansible.pub
|
|
|
chown -R ansible:Ansible /home/ansible/.ssh
|
|
|
echo "Enabling IPv6"
|
|
|
sed -i '/net.ipv6.conf.all.disable_ipv6.*/d' /etc/sysctl.conf && sysctl -q -p && echo 0 > /proc/sys/net/ipv6/conf/all/disable_ipv6
|
|
@@ -29,6 +29,6 @@ sed -i 's/SELINUX=enforcing/SELINUX=permissive/' /etc/selinux/config
|
|
|
echo "install Teleport agent"
|
|
|
sudo bash -c "$(curl -fsSL https://xs.xo.nl/scripts/c368df0b0c8b08d92e3cfa66616c333a/install-node.sh)"
|
|
|
echo "Deployment is completed"
|
|
|
-echo "Reboot host in 3 seconds"
|
|
|
-wait 3
|
|
|
+echo "Reboot host in 5 seconds"
|
|
|
+wait 5
|
|
|
reboot
|