Skip to content

Commit 866cb0b

Browse files
committed
Add workaround for lint error caused by redhat-subscription
1 parent c643b94 commit 866cb0b

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

.github/workflows/ansible-lint.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,10 @@ jobs:
1919
- name: Install dependency
2020
run: ansible-galaxy collection install -r requirements.yaml
2121

22+
# This works around the lint error from `ansible-playbook --syntax-check -vv playbooks/install_stack.yaml`
23+
# [ERROR]: Could not find specified file in role, its 'tasks/' is not usable.
24+
- name: Prepare redhat-subscription
25+
run: git clone --depth 1 --branch 1.3.0 https://opendev.org/openstack/ansible-role-redhat-subscription.git $HOME/.ansible/roles/redhat-subscription
26+
2227
- name: Run lint
23-
run: ansible-lint playbooks/**
28+
run: export ANSIBLE_COLLECTIONS_PATH=$HOME/.ansible/collections; ansible-lint playbooks/**

0 commit comments

Comments
 (0)