ansible / molecule

Molecule aids in the development and testing of Ansible content: collections, playbooks and roles
https://ansible.readthedocs.io/projects/molecule/
MIT License
3.88k stars 662 forks source link

MOLECULE_REPORT is not generating html report when mentioned in molecule.yml as per docs #4081

Closed ABHISHEK-SINHA10 closed 11 months ago

ABHISHEK-SINHA10 commented 11 months ago

Prerequisites

Environment

molecule 6.0.2 using python 3.11 ansible:2.16.0 azure:23.5.0 from molecule_plugins containers:23.5.0 from molecule_plugins requiring collections: ansible.posix>=1.3.0 community.docker>=1.9.1 containers.podman>=1.8.1 default:6.0.2 from molecule docker:23.5.0 from molecule_plugins requiring collections: community.docker>=3.0.2 ansible.posix>=1.4.0 ec2:23.5.0 from molecule_plugins gce:23.5.0 from molecule_plugins requiring collections: google.cloud>=1.0.2 community.crypto>=1.8.0 podman:23.5.0 from molecule_plugins requiring collections: containers.podman>=1.7.0 ansible.posix>=1.3.0 vagrant:23.5.0 from molecule_plugins

What happened

As per molecule docs: https://ansible.readthedocs.io/projects/molecule/configuration/#molecule.interpolation.Interpolator

If we mention MOLECULE_REPORT in molecule.yml, it's not generating html report.

Reproducing example

---
dependency:
  name: galaxy
driver:
  name: podman
platforms:
  - name: centos
    image: quay.io/centos/centos:stream8
    pre_build_image: true
    volumes:
      - /tmp:/tmpcl
provisioner:
  name: ansible
  env:
    MOLECULE_REPORT: 'molecule_report'
priyamsahoo commented 11 months ago

This env variable was not designed to be used in the config file. Also, MOLECULE_REPORT requires the name of an HTML file.

ABHISHEK-SINHA10 commented 11 months ago

@priyamsahoo can you provide any example, or provide any link of documentation with example ?