1.0.30 #17

Merged
chris merged 3 commits from testing into main 2024-03-03 19:55:22 -05:00
6 changed files with 114 additions and 1 deletions

View File

@ -8,7 +8,7 @@ namespace: jchristianh
name: baseos name: baseos
# The version of the collection. Must be compatible with semantic versioning # The version of the collection. Must be compatible with semantic versioning
version: 1.0.29 version: 1.0.30
# The path to the Markdown (.md) readme file. This path is relative to the root of the collection # The path to the Markdown (.md) readme file. This path is relative to the root of the collection
readme: README.md readme: README.md

38
roles/dnf_conf/README.md Normal file
View File

@ -0,0 +1,38 @@
Role Name
=========
A brief description of the role goes here.
Requirements
------------
Any pre-requisites that may not be covered by Ansible itself or the role should be mentioned here. For instance, if the role uses the EC2 module, it may be a good idea to mention in this section that the boto package is required.
Role Variables
--------------
A description of the settable variables for this role should go here, including any variables that are in defaults/main.yml, vars/main.yml, and any variables that can/should be set via parameters to the role. Any variables that are read from other roles and/or the global scope (ie. hostvars, group vars, etc.) should be mentioned here as well.
Dependencies
------------
A list of other roles hosted on Galaxy should go here, plus any details in regards to parameters that may need to be set for other roles, or variables that are used from other roles.
Example Playbook
----------------
Including an example of how to use your role (for instance, with variables passed in as parameters) is always nice for users too:
- hosts: servers
roles:
- { role: username.rolename, x: 42 }
License
-------
BSD
Author Information
------------------
An optional section for the role authors to include contact information, or a website (HTML is not allowed).

View File

@ -0,0 +1,16 @@
---
dnf_conf_maintainer : "Chris H."
dnf_conf_maintainer_email : "<chris@thezengarden.net>"
dnf_conf_file : "/etc/dnf/dnf.conf"
dnf_conf_version : 1.0
dnf_conf_revision : 2433621
dnf_conf_fastest_mirror : "False"
dnf_conf_gpg_check : "1"
dnf_conf_max_downloads : 20
...

View File

@ -0,0 +1,29 @@
galaxy_info:
author: Chris Hammer
description: Deploys a standard /etc/dnf/dnf.conf
license: GPL-2.0-or-later
min_ansible_version: "2.14.0"
platforms:
- name: Fedora
versions:
- all
- name: EL
versions:
- "8"
- "9"
galaxy_tags: []
# List tags for your role here, one per line. A tag is a keyword that describes
# and categorizes the role. Users find roles by searching for tags. Be sure to
# remove the '[]' above, if you add tags to this list.
#
# NOTE: A tag is limited to a single word comprised of alphanumeric characters.
# Maximum 20 tags per role.
dependencies: []
# List your role dependencies here, one per line. Be sure to remove the '[]' above,
# if you add dependencies to this list.

View File

@ -0,0 +1,11 @@
---
- name: Deploy {{ dnf_conf_file }}
ansible.builtin.template:
src: templates/dnf_conf.j2
dest: "{{ dnf_conf_file }}"
mode: "0644"
when:
- "'dnf' in ansible_pkg_mgr"
...

View File

@ -0,0 +1,19 @@
##########################
# The Zen Garden Network #
##########################
#
# Configuration : {{ dnf_conf_file }}
# Template Version : {{ dnf_conf_version}}-{{ dnf_conf_revision }}
#
# {{ dnf_conf_maintainer }} {{ dnf_conf_maintainer_email }}
###############################################
[main]
gpgcheck={{ dnf_conf_gpg_check }}
installonly_limit=3
clean_requirements_on_remove=True
best=True
skip_if_unavailable=False
max_parallel_downloads={{ dnf_conf_max_downloads }}
fastestmirror={{ dnf_conf_fastest_mirror }}