Files
computer-playbook/roles/update-compose/tasks
Kevin Veen-Birkenbach 94f97ed1f3 Refactor: Migrate deprecated Ansible facts to ansible_facts[] syntax
Why:
- Ansible 2.20+ deprecates INJECT_FACTS_AS_VARS and direct usage of top-level ansible_* facts.
- This change updates all affected roles and vars files to the new supported syntax.
- Ensures compatibility with upcoming Ansible 2.24 removal of implicit fact injection.

Conversation reference:
https://chatgpt.com/share/692f639b-1380-800f-9f18-732f7108e9e2
2025-12-02 23:09:46 +01:00
..

Update System

Description

This role serves as a central orchestrator for system updates. It conditionally executes various update roles based on the target system and available directories, ensuring that packages and Docker images are kept up-to-date.

Overview

This role performs the following tasks:

  • Checks if the Docker Compose instances directory exists.
  • Executes system updates using platform-specific methods:
    • Uses pacman for Arch Linux.
    • Uses apt for Debian-based systems.
  • Invokes the Docker update role if Docker Compose instances are found.
  • Checks for the presence of the yay AUR helper and, if installed, triggers an update for AUR packages.

Purpose

The primary purpose of this role is to streamline system maintenance by delegating updates to the appropriate update roles based on the systems platform and current configuration.

Features

  • Conditional Execution: Runs update roles based on the operating system and available directories.
  • Multi-Platform Support: Supports both Arch Linux and Debian-based distributions.
  • Docker Image Updates: Triggers Docker image updates when applicable.
  • AUR Package Updates: Checks for the AUR helper and updates AUR packages if present.