Files
computer-playbook/roles/desk-git
Kevin Veen-Birkenbach fff7d261a2 Refactor run-once logic across multiple roles and integrate unified utils/run_once.yml
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
2025-11-30 18:51:40 +01:00
..
2025-07-11 03:16:16 +02:00

Git

Description

This role installs and configures Git on the target system using the Pacman package manager (via the community.general.pacman module). In addition, it configures Git for the user by installing a custom git configuration using the git-configurator tool. The role ensures that Git is installed and that the configuration tasks are run only once per host.

Purpose

The purpose of this role is to automate the installation and configuration of Git for personal computers. By leveraging a custom git-configurator, it sets up essential Git settings such as merge options, rebase preferences, user information, and GPG signing, ensuring a consistent environment for version control operations.

Features

  • Automated Git Installation: Installs Git using Pacman.
  • Custom Git Configuration: Invokes the git-configurator tool to merge user-specific configuration options.
  • Idempotent Task Execution: Uses host-level run-once artifacts to ensure that configuration tasks are executed only once per host.
  • Integration: Works alongside the pkgmgr role to streamline overall system setup.

Credits

Developed and maintained by Kevin Veen-Birkenbach.
Learn more at www.veen.world
For Git configuration details, see git-configurator on GitHub.

License: Infinito.Nexus NonCommercial License