Sys-version Role¶
Description: Host-level provisioning for exposing the project’s pyproject.toml version system-wide via /etc/environment
Variables¶
author: Kevin Veen-Birkenbach
description: Host-level provisioning for exposing the project’s pyproject.toml version system-wide via /etc/environment
license: Infinito.Nexus Community License (Non-Commercial)
company: Kevin Veen-Birkenbach https://www.veen.world
min_ansible_version: 2.9
platforms: [{‘name’: ‘ArchLinux’, ‘versions’: [‘all’]}, {‘name’: ‘Debian’, ‘versions’: [‘all’]}, {‘name’: ‘EL’, ‘versions’: [‘all’]}, {‘name’: ‘Fedora’, ‘versions’: [‘all’]}, {‘name’: ‘Ubuntu’, ‘versions’: [‘all’]}]
galaxy_tags: [‘version’, ‘system’, ‘environment’, ‘infinito’, ‘automation’]
issue_tracker_url: https://s.infinito.nexus/issues
README¶
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.
Overview¶
This role extracts the local pyproject.toml version and writes it as an environment variable in /etc/environment on the target host.
Cosmos¶
The diagram places System Version ️ in the Infinito.Nexus cosmos: the components it deploys (capabilities), the central services it consumes (dependencies), and its outward reach (federation and bridged external networks).
flowchart LR
subgraph role [sys-version 💻]
svc_version["version"]
endSolid 1:1 edges are fixed relationships; dashed 0..1 edges are
conditional (enabled only in matching deployments); red 0..0 edges
are turned off in this role. Node markers show the role’s deploy modes
(💻 host, 🐳 compose, 🐝 swarm); ❌ marks a service that is explicitly
turned off, and ⚙️ an Ansible role dependency declared in
meta/main.yml.
Features¶
Extracts
version = "..."frompyproject.tomlon the control nodePersists the version as an environment variable in
/etc/environmentUpdates the existing variable idempotently (no duplicates)
Creates
/etc/environmentif missing
Variables¶
FILE_ENVIRONMENT(default:/etc/environment)INFINITO_VERSION_ENV_NAME(default:INFINITO_VERSION)
Credits¶
Implemented by Kevin Veen-Birkenbach. Part of the Infinito.Nexus Project and maintained by Kevin Veen-Birkenbach. Licensed under the Infinito.Nexus Community License (Non-Commercial).