Sync bootstrap-client.sh aus ansible-infrastruktur (verwaltung-ossa-1@verwaltungossa1-Mini-IT-8 2026-04-21)
This commit is contained in:
+5
-2
@@ -43,17 +43,20 @@ else
|
|||||||
echo "Public-Key bereits vorhanden."
|
echo "Public-Key bereits vorhanden."
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# 4. Pakete: openssh-server (Zorin-Desktop bringt ihn nicht mit) + python3
|
# 4. Pakete: minimalsatz fuer Ansible-Verwaltung
|
||||||
|
# openssh-server (fehlt auf Zorin-Desktop), python3, rsync (skeleton-sync), curl
|
||||||
export DEBIAN_FRONTEND=noninteractive
|
export DEBIAN_FRONTEND=noninteractive
|
||||||
NEEDED_PKGS=()
|
NEEDED_PKGS=()
|
||||||
command -v python3 >/dev/null 2>&1 || NEEDED_PKGS+=("python3")
|
command -v python3 >/dev/null 2>&1 || NEEDED_PKGS+=("python3")
|
||||||
|
command -v rsync >/dev/null 2>&1 || NEEDED_PKGS+=("rsync")
|
||||||
|
command -v curl >/dev/null 2>&1 || NEEDED_PKGS+=("curl")
|
||||||
dpkg -s openssh-server >/dev/null 2>&1 || NEEDED_PKGS+=("openssh-server")
|
dpkg -s openssh-server >/dev/null 2>&1 || NEEDED_PKGS+=("openssh-server")
|
||||||
if (( ${#NEEDED_PKGS[@]} )); then
|
if (( ${#NEEDED_PKGS[@]} )); then
|
||||||
apt-get update -qq
|
apt-get update -qq
|
||||||
apt-get install -y "${NEEDED_PKGS[@]}"
|
apt-get install -y "${NEEDED_PKGS[@]}"
|
||||||
echo "Installiert: ${NEEDED_PKGS[*]}"
|
echo "Installiert: ${NEEDED_PKGS[*]}"
|
||||||
else
|
else
|
||||||
echo "openssh-server + python3 bereits vorhanden."
|
echo "openssh-server + python3 + rsync + curl bereits vorhanden."
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# 5. sshd sicher aktiv
|
# 5. sshd sicher aktiv
|
||||||
|
|||||||
Reference in New Issue
Block a user