ansible / ansible/molecule

Molecule 4.0.4 Missing Lint

Open
#3,983 3 comments 1 reaction 0 assignees View on GitHub
bug
Dominant language
Python
Stars
4.1k
Forks
676
Avg merge
4d 14h
Merged PRs (30d)
9

Description

# Issue Type

- Bug report

# Molecule and Ansible details

```
$ ansible --version && molecule --version
ansible --version && molecule --version
ansible [core 2.15.2]
config file = /playbook/ansible.cfg
configured module search path = ['/home/cli/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
ansible python module location = /usr/local/lib/python3.11/site-packages/ansible
ansible collection location = /playbook/collections
executable location = /usr/local/bin/ansible
python version = 3.11.4 (main, Jun 15 2023, 06:10:48) [GCC 12.2.1 20220924] (/usr/local/bin/python)
jinja version = 3.1.2
libyaml = False
molecule 4.0.4 using python 3.11
ansible:2.15.2
azure:23.0.0 from molecule_plugins
containers:23.0.0 from molecule_plugins requiring collections: ansible.posix>=1.3.0 community.docker>=1.9.1 containers.podman>=1.8.1
delegated:4.0.4 from molecule
docker:23.0.0 from molecule_plugins requiring collections: community.docker>=3.0.2 ansible.posix>=1.4.0
ec2:23.0.0 from molecule_plugins
gce:23.0.0 from molecule_plugins requiring collections: google.cloud>=1.0.2 community.crypto>=1.8.0
podman:23.0.0 from molecule_plugins requiring collections: containers.podman>=1.7.0 ansible.posix>=1.3.0
vagrant:23.0.0 from molecule_plugins
```

Molecule installation method (one of):

- pip

Ansible installation method (one of):

- pip

# Desired Behavior

Molecule 4 should still support lint

# Actual Behaviour

```
aa458c73cbbe:/playbook$ molecule test
CRITICAL Failed to validate /playbook/molecule/default/molecule.yml

["Additional properties are not allowed ('lint' was unexpected)"]
```

Contributor guide

Open the contributing guide

Research direction

First reproduce the failure with the reported `molecule test` command and inspect `molecule/default/molecule.yml`, where `lint` is rejected. Trace the Molecule configuration validation and lint workflow; done means the configuration accepts `lint` and `molecule test` no longer reports it as an unexpected property.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
cli, testing
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.