ERROR! the role 'java-install' was not found in <>
The error appears to be in '': line 5, column 7, but may
be elsewhere in the file depending on the exact syntax
problem.
Update role name to match the role path on GHA and
Jenkins jobs.
Ref: https://github.com/ansible/molecule/issues/1042
Change-Id: I49824dd6ea8b507e76d9d92ae332077c52ae3501
Signed-off-by: Anil Belur <abelur@linuxfoundation.org>
pip3 install ansible ansible-lint molecule-plugins[docker] docker
- name: Run Molecule tests.
run: molecule test
+ working-directory: ${{env.working-directory}}
env:
PY_COLORS: "1"
ANSIBLE_FORCE_COLOR: "1"
---
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
- rev: v4.1.0
+ rev: v4.5.0
hooks:
- id: trailing-whitespace
- repo: https://github.com/jorisroovers/gitlint
- rev: v0.17.0
+ rev: v0.19.1
hooks:
- id: gitlint
- name: Converge
hosts: all
roles:
- - role: java-install
+ - role: "{{ lookup('env', 'MOLECULE_PROJECT_DIRECTORY') | basename }}"