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.89k stars 664 forks source link

Molecule 4.0.4 Missing Lint #3983

Open ElfoLiNk opened 1 year ago

ElfoLiNk commented 1 year ago

Issue Type

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):

Ansible installation method (one of):

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)"]
tima commented 1 year ago

@ssbarnea Is this still an issue after after the release of Molecule 6?

davidhay1969 commented 1 year ago

FYI seeing the same with molecule 5.1.0 and, alas, going to 6.0.2 isn't an option 'cos driver supported is borked as per this 😿