diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 7174cad692e8beb3efe7765f48408931a1f82c77..41a12a3c6e0d526acfd15091d684370237d1a070 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -28,7 +28,11 @@ test-job: - git clone https://gitlab+deploy-token-25:${VAULT_ACCESS_TOKEN}@git.slub-dresden.de/slub-referat-2-3/ansible_vaults.git ../ansible_vaults/; \ # run Molecule tests - molecule syntax --scenario-name default - - molecule lint --scenario-name default + # We cannot use `molecule lint` anymore because: + # - https://github.com/ansible-community/molecule/pull/3802 "Remove lint command" + # - https://github.com/ansible-community/molecule/discussions/3825#discussioncomment-4908366 + - yamllint --strict --format colored ./ + - ansible-lint --format full --profile production --strict --force-color ./ - molecule create --scenario-name default - molecule converge --scenario-name default - molecule idempotence --scenario-name default diff --git a/molecule/virtualbox/molecule.yml b/molecule/virtualbox/molecule.yml index 0a3fa78fc3ba410c304e96fb6700c7d483f72e10..57fde776072d9d564c26e3fae7cb427c09ba7762 100644 --- a/molecule/virtualbox/molecule.yml +++ b/molecule/virtualbox/molecule.yml @@ -4,10 +4,6 @@ dependency: enabled: false driver: name: vagrant -lint: | - set -e - yamllint . - ansible-lint -x no-loop-var-prefix,command-instead-of-module,package-latest platforms: # Check out the documentation at # https://github.com/ansible-community/molecule-vagrant#documentation