No description
Find a file
semantic-release-bot edca746932 chore(release): 1.2.0 [skip ci]
# [1.2.0](https://github.com/de-it-krachten/ansible-role-html_report/compare/v1.1.0...v1.2.0) (2026-07-26)

### Features

* Added support for Fedora 44 ([4833460](4833460577))
* Added support for Ubuntu 26.04 LTS ([9e4b1dc](9e4b1dc67b))
* Drop support for Fedora 42 ([71acb44](71acb440d0))
2026-07-26 19:54:57 +00:00
.github/workflows Update CI 2026-07-23 14:39:08 +02:00
defaults feat: First release 2026-02-22 18:48:09 +01:00
meta Update CI 2026-06-07 16:56:20 +02:00
molecule/default Update CI 2026-07-25 17:21:00 +02:00
tasks feat: First release 2026-02-22 18:48:09 +01:00
templates feat: Add support for field with green/red text background 2026-02-24 22:30:31 +01:00
.ansible-lint Update CI 2026-06-07 16:56:20 +02:00
.cicd Update CI 2026-06-09 11:00:06 +02:00
.cicd.overwrite Update supported platforms & CI 2026-03-14 19:37:07 +01:00
.collections feat: First release 2026-02-22 18:48:09 +01:00
.gitignore feat: First release 2026-02-22 18:48:09 +01:00
.releaserc.yml feat: First release 2026-02-22 18:48:09 +01:00
.roles feat: First release 2026-02-22 18:48:09 +01:00
.yamllint feat: First release 2026-02-22 18:48:09 +01:00
CHANGELOG.md chore(release): 1.2.0 [skip ci] 2026-07-26 19:54:57 +00:00
README.md Update CI 2026-06-07 16:56:20 +02:00

CI

ansible-role-html_report

Creates basic HTML reports from YAML or CSV files.
Reports can be sorted and filtered.
See https://datatables.net

Dependencies

Roles

None

Collections

  • 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 22.04 LTS
  • Ubuntu 24.04 LTS
  • Ubuntu 26.04 LTS
  • Fedora 43
  • Fedora 441

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

Role Variables

defaults/main.yml


# jquery & datatables setings
html_report_datatables_css: https://cdn.datatables.net/2.3.7/css/dataTables.dataTables.css
html_report_datatables_js: https://cdn.datatables.net/2.3.7/js/dataTables.js
html_report_jquery: https://code.jquery.com/jquery-3.7.1.js

# File to convert into HTML report
# html_report_file: /tmp/report.csv

# Provide data sugin a variable instead of file
# html_report_data: [ { 'f1': 'x', 'f2': 'y' } ]

# File location to place the report
# html_report_path: /tmp/report.html

# Name of the table
# html_report_table_name: TEST

# Template to use for creating the HTML report
html_report_template: table.html.j2

# Convert field that start with http/https into links
html_report_link: true

Example Playbook

molecule/default/converge.yml


- name: sample playbook for role 'html_report' pre playbook
  ansible.builtin.import_playbook: converge-pre.yml
  when: molecule_converge_pre is undefined or molecule_converge_pre | bool
- name: sample playbook for role 'html_report'
  hosts: all
  become: 'yes'
  vars:
    molecule_driver: '{{ lookup(''env'', ''MOLECULE_DRIVER_NAME'') }}'
    html_report_path: /tmp/customers.html
    html_report_file: /tmp/customers-100.csv
    html_report_table_name: TEST
  tasks:
    - name: Include role 'html_report'
      ansible.builtin.include_role:
        name: html_report