mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-12-02 15:39:57 +00:00
This commit standardizes all run-once implementations across the following roles: - desk-git - dev-fakeroot - dev-git - dev-python-yaml - sys-lock - sys-svc-certs (wildcard flavor) - update-apt - update-pacman - update-compose - user-root (moved logic to 01_core.yml + unified run-once handling) - web-app-matomo - web-svc-libretranslate All roles now: - Use a block guarded by 'run_once_<role>' facts - Trigger run-once state through utils/run_once.yml - Optionally disable handler flushing via 'flush_handlers: false' - Achieve consistent per-host one-time execution semantics Conversation reference: https://chatgpt.com/share/692c7fbb-ff68-800f-8cb4-4b132cffc8e4
Python-Yaml
Description
This Ansible role installs the python-yaml package on the target system. It ensures that the Python yaml library is available for loading and processing YAML files.
Overview
Optimized for simplicity and idempotency, this role provides:
- Installation of the
python-yamlpackage via the Pacman package manager. - A mechanism to run the installation only once.
Purpose
The purpose of this role is to reliably provide the Python-YAML package so that Python scripts can work with YAML files.
Features
- YAML Support: Installs the
python-yamlpackage, which supplies theyamllibrary for Python. - Idempotency: Uses a fact to ensure that the installation runs only on the first execution.