From 88ebf380424f74998ad8a4f71dc8e31c716f70c7 Mon Sep 17 00:00:00 2001 From: Felix Schulze Date: Sun, 7 Jan 2024 18:38:35 +0000 Subject: [PATCH] Update ansible-rocky.sh --- ansible-rocky.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ansible-rocky.sh b/ansible-rocky.sh index 12eec70..beb9b90 100644 --- a/ansible-rocky.sh +++ b/ansible-rocky.sh @@ -6,4 +6,8 @@ useradd -p '$6$CsCshZ6pxVNCn70J$ag/tZ9FBBxUizsMy8q7CUQpx0x.OYe3cU1vHut4wDZ/aq0XH usermod -aG wheel ansible mkdir -p /home/ansible/.ssh && echo "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQC3JluNYq+SzgfmM2G/TI+hw1uliz6c4823otBj2IPTvdx6rpmRa+aTAb8Cl8NXT7ARCIeb4bYqWFhxr38DdwM+lGYP/2dhxxleKz9YYzkyaGvzZw//BuGiYU3FBpAv0eOOJC2nWh+PMJ/OCocrGojyjwxQeg5u3Zx+l5TAiybHCQWTfPgy5Wmn7ATmr4gS39pJg+UeyiCFKK28Tm+EzmnJaXEtTgaAWiWGSjjDlkwGr+Y7+LUh0xHFnF8FcBJCIJ3JV2+WkriTp2N59MIs/+sxvZI8STekIfhzznsHyvUnZSPI0DETqZQt7oGYMUbw/MGuZofEn2JgDThWQoxlwAltWZdDoedJ8ECUfL8yJf1t4i9zzrv5XiQ5auJBJHyK0Av23zQH1WCHlEALte9p9VSY/ieqldWAoYJl3tbiVklTytLsvQZvyW2/zr2rlUrr9Z/mFtYfux98hbpoe3sOqQP2JlqTdEdxGt0bH11BreFvvFJtqpXP1JnmwSmwcmabfIs= root@prod-infra-ansiblesemaphore" >> /home/ansible/.ssh/authorized_keys chown ansible -R /home/ansible -chmod 700 /home/ansible/ && chmod 600 /home/ansible/.ssh/authorized_keys \ No newline at end of file +chmod 700 /home/ansible/ && chmod 600 /home/ansible/.ssh/authorized_keys + +dnf install openssh-server +systemctl enable sshd +systemctl start sshd \ No newline at end of file