Add playbooks to role os-linux-prep-default

This commit is contained in:
2024-09-21 22:58:54 +03:00
parent 8b85b73396
commit 36aa9106ea
34 changed files with 499 additions and 14 deletions

View File

@ -6,6 +6,13 @@ sudo pvresize /dev/sda2 > /dev/null 2>&1
sudo lvextend -y -f -l +100%FREE /dev/vg01/root > /dev/null 2>&1
sudo resize2fs /dev/vg01/root > /dev/null 2>&1
echo "Delete password for root and ansb-srv-it"
sudo usermod -p '*' root
sudo usermod -p '*' ansb-srv-it
echo "Change perm for /home/ansb-srv-it"
sudo chmod 700 /home/ansb-srv-it
echo "Create rc.local file..."
sudo echo "#!/bin/sh -e
#
@ -20,9 +27,11 @@ sudo echo "#!/bin/sh -e
#
# By default this script does nothing.
exit 0
" > /etc/rc.local
sudo mkdir -p /root/.ansible/tmp
sudo chmod 700 /root/.ansible/tmp
sudo chown root:root /etc/rc.local
sudo chmod 755 /etc/rc.local