new version
Some checks failed
Ansible Minecraft CI/CD / Ansible Lint (push) Successful in 8s
Ansible Minecraft CI/CD / Syntax Check (push) Failing after 7s
Ansible Minecraft CI/CD / Deploy to Staging (push) Has been skipped
Ansible Minecraft CI/CD / Deploy to Production (push) Has been skipped

This commit is contained in:
2025-08-27 15:11:08 +02:00
parent 3e64946953
commit 8f0877cd53
105 changed files with 911 additions and 2540 deletions

View File

@@ -1,26 +1,23 @@
---
- name: Update apt cache
- name: Vérification des mises à jour système disponibles
ansible.builtin.apt:
update_cache: yes
cache_valid_time: 3600
when: ansible_os_family == "Debian"
- name: Check for available updates
ansible.builtin.command: apt list --upgradable
register: apt_updates
changed_when: false
- name: Liste des paquets à mettre à jour
ansible.builtin.apt:
upgrade: dist
dry_run: yes
register: system_updates_check
when: ansible_os_family == "Debian"
- name: Display available updates
ansible.builtin.debug:
msg: "Available updates: {{ apt_updates.stdout_lines | length - 1 }} packages"
when: apt_updates is defined
- name: Perform system update if requested
- name: Application des mises à jour système si nécessaire
ansible.builtin.apt:
upgrade: safe
upgrade: dist
autoremove: yes
autoclean: yes
when:
- ansible_os_family == "Debian"
- perform_system_update | default(false)
- update_system_packages | default(false)
- system_updates_check.changed