mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-08-29 15:06:26 +02:00
Decoupeled Sphinx
This commit is contained in:
27
roles/update-pkgmgr/README.md
Normal file
27
roles/update-pkgmgr/README.md
Normal file
@@ -0,0 +1,27 @@
|
||||
# Update pkgmgr
|
||||
|
||||
## Description
|
||||
|
||||
This role checks if the [package manager](https://github.com/kevinveenbirkenbach/package-manager) is available on the system. If so, it runs `pkgmgr update --all` to update all repositories managed by the `pkgmgr`.
|
||||
|
||||
## Overview
|
||||
|
||||
This role performs the following tasks:
|
||||
- Checks if the `pkgmgr` command is available.
|
||||
- If available, runs `pkgmgr update --all` to update all repositories.
|
||||
|
||||
## Purpose
|
||||
|
||||
The purpose of this role is to simplify system updates by using the `pkgmgr` package manager to handle all repository updates with a single command.
|
||||
|
||||
## Features
|
||||
|
||||
- **Conditional Execution**: Runs only if the `pkgmgr` command is found on the system.
|
||||
- **Automated Updates**: Automatically runs `pkgmgr update --all` to update all repositories.
|
||||
|
||||
## License
|
||||
|
||||
CyMaIS NonCommercial License (CNCL)
|
||||
[Learn More](https://s.veen.world/cncl)
|
||||
|
||||
|
1
roles/update-pkgmgr/defaults/main.yml
Normal file
1
roles/update-pkgmgr/defaults/main.yml
Normal file
@@ -0,0 +1 @@
|
||||
pkgmgr_command: "pkgmgr"
|
24
roles/update-pkgmgr/meta/main.yml
Normal file
24
roles/update-pkgmgr/meta/main.yml
Normal file
@@ -0,0 +1,24 @@
|
||||
---
|
||||
galaxy_info:
|
||||
author: "Kevin Veen-Birkenbach"
|
||||
description: "Checks if the pkgmgr command is available and runs 'pkgmgr update --all' to update all repositories."
|
||||
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: Linux
|
||||
versions:
|
||||
- all
|
||||
galaxy_tags:
|
||||
- update
|
||||
- package-manager
|
||||
- pkgmgr
|
||||
- system
|
||||
repository: "https://s.veen.world/cymais"
|
||||
issue_tracker_url: "https://s.veen.world/cymaisissues"
|
||||
documentation: "https://s.veen.world/cymais"
|
||||
dependencies: []
|
2
roles/update-pkgmgr/tasks/main.yml
Normal file
2
roles/update-pkgmgr/tasks/main.yml
Normal file
@@ -0,0 +1,2 @@
|
||||
- name: "Update all repositories with pkgmgr"
|
||||
command: "pkgmgr update --all"
|
Reference in New Issue
Block a user