Cleaning up of gen roles

This commit is contained in:
2025-07-11 19:19:24 +02:00
parent 33276263b0
commit 25e4a50974
101 changed files with 48 additions and 56 deletions

View File

@@ -0,0 +1,20 @@
# 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-yaml` package 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-yaml` package, which supplies the `yaml` library for Python.
- **Idempotency:** Uses a fact to ensure that the installation runs only on the first execution.

View File

@@ -0,0 +1,24 @@
galaxy_info:
author: "Kevin Veen-Birkenbach"
description: >
Installs the `python-yaml` package to enable YAML support in Python.
license: "CyMaIS NonCommercial License (CNCL)"
license_url: "https://s.veen.world/cncl"
company: |
Kevin Veen-Birkenbach
Consulting & Coaching Solutions
https://www.veen.world
min_ansible_version: "2.9"
platforms:
- name: Archlinux
versions:
- rolling
galaxy_tags:
- python
- yaml
- package
- installation
- automation
repository: "https://s.veen.world/cymais"
issue_tracker_url: "https://s.veen.world/cymaisissues"
documentation: "https://s.veen.world/cymais"

View File

@@ -0,0 +1,11 @@
---
- name: python-yaml install
pacman:
name: python-yaml
state: present
when: run_once_python_yaml is not defined
- name: run the python_yaml tasks once
set_fact:
run_once_python_yaml: true
when: run_once_python_yaml is not defined