No description
Find a file
semantic-release-bot f99af74670 chore(release): 1.18.1 [skip ci]
## [1.18.1](https://github.com/de-it-krachten/ansible-role-facts/compare/v1.18.0...v1.18.1) (2026-05-11)

### Bug Fixes

* Fix support for kernel module facts (lsmod) ([17e4580](17e4580063))
2026-05-11 21:16:47 +00:00
.github/workflows feat: Add support for kernel module facts (lsmod) 2026-05-11 18:40:15 +02:00
defaults fix: Fix support for kernel module facts (lsmod) 2026-05-11 23:09:28 +02:00
handlers feat: Update CI to latest standards 2022-10-10 08:58:57 +02:00
meta feat: Add support for kernel module facts (lsmod) 2026-05-11 18:40:15 +02:00
molecule/default feat: Add support for kernel module facts (lsmod) 2026-05-11 18:40:15 +02:00
tasks fix: Fix support for kernel module facts (lsmod) 2026-05-11 23:09:28 +02:00
templates feat: Add support for kernel module facts (lsmod) 2026-05-11 18:40:15 +02:00
.ansible-lint feat: Add support for kernel module facts (lsmod) 2026-05-11 18:40:15 +02:00
.cicd feat: Add support for kernel module facts (lsmod) 2026-05-11 18:40:15 +02:00
.cicd.overwrite feat: Add support for kernel module facts (lsmod) 2026-05-11 18:40:15 +02:00
.collections fix: Fix support for kernel module facts (lsmod) 2026-05-11 23:09:28 +02:00
.gitignore Delete '.ansible' from git 2025-08-04 21:58:24 +02:00
.releaserc.yml Update CI 2026-03-06 22:36:00 +01:00
.roles feat: Add support for kernel module facts (lsmod) 2026-05-11 18:40:15 +02:00
.yamllint feat: Update supported platforms & CI 2024-12-29 01:57:50 +01:00
CHANGELOG.md chore(release): 1.18.1 [skip ci] 2026-05-11 21:16:47 +00:00
README.md fix: Fix support for kernel module facts (lsmod) 2026-05-11 23:09:28 +02:00

CI

ansible-role-facts

Provisions custom facts and runs setup optionally

Dependencies

Roles

  • deitkrachten.epel
  • deitkrachten.python

Collections

  • ansible.windows
  • community.general

Platforms

Supported platforms

  • Red Hat Enterprise Linux 81
  • Red Hat Enterprise Linux 91
  • Red Hat Enterprise Linux 101
  • RockyLinux 8
  • RockyLinux 9
  • RockyLinux 10
  • OracleLinux 8
  • OracleLinux 9
  • OracleLinux 10
  • AlmaLinux 8
  • AlmaLinux 9
  • AlmaLinux 10
  • Debian 11 (Bullseye)
  • Debian 12 (Bookworm)
  • Debian 13 (Trixie)
  • Ubuntu 20.04 LTS
  • Ubuntu 22.04 LTS
  • Ubuntu 24.04 LTS
  • Ubuntu 26.04 LTS
  • Fedora 43
  • Fedora 441
  • Alpine 3
  • Windows Server 2012 R21
  • Windows Server 20161
  • Windows Server 20191
  • Windows Server 20221
  • Windows Server 20251

Note: 1 : no automated testing is performed on these platforms

Role Variables

defaults/main.yml


# facts location
facts_path: /etc/ansible/facts.d

# list of defaults facts to distribute
# Possible attributes : name, groups (default=all), os (default=all), os_family (default=all)
# groups, os and os_family should be lists
facts_custom:
  - name: kernel
  - name: users
  - name: users_ext
  - name: groups
  - name: groups_ext
  - name: repolist
    os_family: [ 'RedHat' ]
  - name: cpu
  - name: scsi
  - name: mapper
  - name: platform
  - name: lsmod

# List of packages required to custom facts
facts_packages:
  - kmod

# List of tools to install in python venv
facts_venv:
  - name: jc
    packages:
      - jc

# Additional facts to distribute
facts_custom_additional: "{{ custom_facts_additional | default([]) }}"

# Run setup when facts change
facts_run_setup: true

# Execute setup in all cases
facts_force_run_setup: false

defaults/family-Debian.yml


# List of packages required to custom facts
facts_packages:
  - kmod
  - python3-venv

defaults/family-Windows.yml


# facts location
facts_path: c:\temp\facts

# list of defaults facts to distribute
# Possible attributes : name, groups (default=all), os (default=all), os_family (default=all)
# groups, os and os_family should be lists
facts_custom:
  - disks_custom
  - platform

# customer facts to distribute
facts_custom_additional: "{{ custom_facts_additional | default([]) }}"

# Run setup when facts change
facts_run_setup: true

Example Playbook

molecule/default/converge.yml


- name: sample playbook for role 'facts'
  hosts: all
  become: 'yes'
  tasks:
    - name: Include role 'facts'
      ansible.builtin.include_role:
        name: facts
- name: sample playbook for role 'facts' post playbook
  ansible.builtin.import_playbook: converge-post.yml
  when: molecule_converge_post is undefined or molecule_converge_post | bool