mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-08-29 15:06:26 +02:00
Cleaning up of gen roles
This commit is contained in:
20
roles/dev-python-yaml/README.md
Normal file
20
roles/dev-python-yaml/README.md
Normal 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.
|
24
roles/dev-python-yaml/meta/main.yml
Normal file
24
roles/dev-python-yaml/meta/main.yml
Normal 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"
|
11
roles/dev-python-yaml/tasks/main.yml
Normal file
11
roles/dev-python-yaml/tasks/main.yml
Normal 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
|
Reference in New Issue
Block a user