Files
computer-playbook/roles/sys-version/README.md
T
kevinveenbirkenbach 2169e4816a refactor(sys-version): store version in /etc/environment as INFINITO_VERSION
- Replace FILE_VERSION file output with environment variable persistence
- Write INFINITO_VERSION into /etc/environment using lineinfile
- Ensure idempotent updates (no duplicate entries)
- Update README and meta description accordingly
- Introduce INFINITO_VERSION_ENV_NAME variable

https://chatgpt.com/share/e/699433f7-1278-8013-af8e-da1b7f303886
2026-02-17 10:25:05 +01:00

920 B

System Version 🏷️

Description

This Ansible role extracts the project version from the local pyproject.toml (using playbook_dir) and writes it as a system-wide environment variable into /etc/environment on the managed host.

Features

  • Extracts version = "..." from pyproject.toml on the control node
  • Persists the version as an environment variable in /etc/environment
  • Updates the existing variable idempotently (no duplicates)
  • Creates /etc/environment if missing

Variables

  • FILE_ENVIRONMENT (default: /etc/environment)
  • INFINITO_VERSION_ENV_NAME (default: INFINITO_VERSION)

Credits 📝

Developed and maintained by Kevin Veen-Birkenbach.
Learn more at www.veen.world

Part of the Infinito.Nexus Project
License: Infinito.Nexus Community License (Non-Commercial)