Compare commits

...

2 Commits

Author SHA1 Message Date
CanbiZ (MickLesk)
0a95f7a7f5 Refactor dependency installation to use multi-line format 2026-02-07 21:03:44 +01:00
MickLesk
38c551cfef fix(semaphore): switch from Debian 12 to Ubuntu 24.04
Ansible PPA (ansible-core 2.20+) requires Python 3.12+ which is not
available on Debian 12 (ships Python 3.11). This causes a SyntaxError
during ansible-core installation on Debian.

Ubuntu 24.04 ships Python 3.12 natively, making the Ansible PPA fully
compatible. Replaced the manual deb822 repo setup with the native
apt-add-repository PPA method.
2026-02-07 21:00:48 +01:00
3 changed files with 7 additions and 11 deletions

View File

@@ -10,8 +10,8 @@ var_tags="${var_tags:-dev_ops}"
var_cpu="${var_cpu:-2}"
var_ram="${var_ram:-2048}"
var_disk="${var_disk:-4}"
var_os="${var_os:-debian}"
var_version="${var_version:-12}"
var_os="${var_os:-ubuntu}"
var_version="${var_version:-24.04}"
var_unprivileged="${var_unprivileged:-1}"
header_info "$APP"

View File

@@ -22,8 +22,8 @@
"cpu": 2,
"ram": 2048,
"hdd": 4,
"os": "debian",
"version": "12"
"os": "ubuntu",
"version": "24.04"
}
}
],

View File

@@ -14,13 +14,9 @@ network_check
update_os
msg_info "Installing Dependencies"
$STD apt install -y git
setup_deb822_repo \
"ansible" \
"https://keyserver.ubuntu.com/pks/lookup?fingerprint=on&op=get&search=0x6125E2A8C77F2818FB7BD15B93C4A3FD7BB9C367" \
"http://ppa.launchpad.net/ansible/ansible/ubuntu" \
"noble"
$STD apt install -y ansible
$STD apt install -y \
git \
ansible
msg_ok "Installed Dependencies"
fetch_and_deploy_gh_release "semaphore" "semaphoreui/semaphore" "binary" "latest" "/opt/semaphore" "semaphore_*_linux_amd64.deb"