diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index b469567..466d012 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -22,4 +22,4 @@ jobs: run: yamllint --strict -c .yamllint . - name: Run ansible-lint - run: ansible-lint + run: ansible-lint --strict --show-relpath . diff --git a/.github/workflows/molecule.yml b/.github/workflows/molecule.yml index 6aa31a9..696969f 100644 --- a/.github/workflows/molecule.yml +++ b/.github/workflows/molecule.yml @@ -18,6 +18,11 @@ jobs: - name: Install Ansbile dependencies run: ansible-galaxy install -r requirements.yml + # ansible-lint will generate .ansible/roles directory and dynamic link this role to it + # we then can import this role by . for testing + - name: Run ansible-lint + run: ansible-lint --strict --show-relpath . + - name: Test playbook run: molecule test env: diff --git a/molecule/default/converge.yml b/molecule/default/converge.yml index 50f0e8f..87786b6 100644 --- a/molecule/default/converge.yml +++ b/molecule/default/converge.yml @@ -7,4 +7,4 @@ tasks: - name: Include opencast_mariadb ansible.builtin.include_role: - name: opencast_mariadb + name: elan.opencast_mariadb