No description
Find a file
semantic-release-bot d73977f320 chore(release): 1.1.0 [skip ci]
# [1.1.0](https://github.com/de-it-krachten/ansible-role-html_report/compare/v1.0.0...v1.1.0) (2026-03-15)

### Features

* Drop support for openSUSE Leap 15 ([9e67907](9e67907fb9))
* Drop support for openSUSE Leap 16 ([ddc2916](ddc2916174))
* Drop support for SUSE Linux Enterprise 15 ([f810e96](f810e96470))
* Drop support for SUSE Linux Enterprise 16 ([c206990](c2069903e3))
2026-03-15 11:38:14 +00:00
.github/workflows Update supported platforms & CI 2026-03-14 19:37:07 +01:00
defaults feat: First release 2026-02-22 18:48:09 +01:00
meta Update supported platforms & CI 2026-03-14 19:37:07 +01:00
molecule/default Update supported platforms & CI 2026-03-14 19:37:07 +01: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 feat: First release 2026-02-22 18:48:09 +01:00
.cicd Update CI 2026-03-11 01:16:22 +01: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.1.0 [skip ci] 2026-03-15 11:38:14 +00:00
README.md Update supported platforms & CI 2026-03-14 19:37:07 +01: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
  • Fedora 42
  • Fedora 43

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