ansible/molecule

v24.12.0 Breaks Side Effects

crypto-services opened this issue · 0 comments

Prerequisites

  • This was not already reported in the past (duplicate check)
  • It does reproduce it with code from main branch (latest unreleased version)
  • I include a minimal example for reproducing the bug
  • The bug is not trivial, as for those a direct pull-request is preferred
  • Running pip check does not report any conflicts
  • I was able to reproduce the issue on a different machine
  • The issue is not specific to any driver other than 'default' one

Environment

molecule 24.12.0 tested on OSX and Ubuntu with Python 3.13 and 3.11.

What happened

Running side effects on this version as per the docs here results in the error message:

ERROR! Empty playbook, nothing to do: /directory/side_effect.yml

In previous versions (i.e. 24.9.0) the denoted playbook would be run, however this no longer works. In the following example rather than attempting to run effect1.yml it tries to run side_effect.yml.

Reproducing example

test_sequence:
  - converge
  - verify test1/
  - side_effect effect1.yml
  - verify test2/
  - side_effect effect2.yml
  - verify test3/