dev #2

Merged
khwezi merged 2 commits from dev into main 2026-04-11 13:57:28 +02:00
2 changed files with 58 additions and 0 deletions
Showing only changes of commit d1076fe39a - Show all commits

View File

@@ -0,0 +1,34 @@
# command: ansible-playbook -i common/config.ini common/update-release.yml
---
- name: Upgrade Ubuntu to next release
hosts: workload-hosts, k3s-hosts
become: true
tasks:
- name: Ensure update-manager-core is installed
ansible.builtin.apt:
name: update-manager-core
state: present
- name: Update all current packages to latest version
ansible.builtin.apt:
update_cache: yes
upgrade: dist
- name: Check if a reboot is required before upgrading
ansible.builtin.stat:
path: /var/run/reboot-required
register: reboot_required_pre
- name: Reboot if required before major upgrade
ansible.builtin.reboot:
when: reboot_required_pre.stat.exists
- name: Run do-release-upgrade non-interactively
ansible.builtin.shell: do-release-upgrade -f DistUpgradeViewNonInteractive
async: 3600 # Sets timeout to 1 hour
poll: 60 # Checks status every 60 seconds
register: upgrade_output
- name: Reboot the server after successful upgrade
ansible.builtin.reboot:
when: upgrade_output is succeeded

View File

@@ -0,0 +1,24 @@
services:
semaphore:
image: semaphoreui/semaphore:latest
container_name: semaphore
restart: unless-stopped
ports:
- "{PORT}:3000"
environment:
SEMAPHORE_DB_USER: {SEMAPHORE_DB_USER}
SEMAPHORE_DB_PASS: {SEMAPHORE_PASSWORD}
SEMAPHORE_DB_HOST: {SEMAPHORE_DB_HOST}
SEMAPHORE_DB_PORT: 5432
SEMAPHORE_DB_DIALECT: postgres
SEMAPHORE_DB: {SEMAPHORE_DB_NAME}
SEMAPHORE_ADMIN: {SEMAPHORE_ADMIN_USERNAME}
SEMAPHORE_ADMIN_PASSWORD: {SEMAPHORE_ADMIN_PASSWORD}
SEMAPHORE_ADMIN_NAME: Administrator
SEMAPHORE_ADMIN_EMAIL: {SEMAPHORE_ADMIN_EMAIL}
SEMAPHORE_ACCESS_KEY_ENCRYPTION: {SEMAPHORE_ACCESS_KEY_ENCRYPTION}
volumes:
- /tmp/semaphore:/tmp/semaphore