Skip to content

"Conditionals must have a boolean result" error for docker driver with recent ansible versions #320

@MaxBidlingmaier

Description

@MaxBidlingmaier

With recent ansible versions conditionals must have a boolean value. The playbooks of the docker driver in this plugin have this issue when using

when: (lookup('env', 'HOME'))
in

  • src/molecule_plugins/docker/playbooks/create.yml
  • src/molecule_plugins/docker/playbooks/destroy.yml

can be fixed by changing to
when: (lookup('env', 'HOME')) != ''

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions