There was an error while loading. Please reload this page.
1 parent c643b94 commit 866cb0bCopy full SHA for 866cb0b
1 file changed
.github/workflows/ansible-lint.yml
@@ -19,5 +19,10 @@ jobs:
19
- name: Install dependency
20
run: ansible-galaxy collection install -r requirements.yaml
21
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
+
27
- name: Run lint
- run: ansible-lint playbooks/**
28
+ run: export ANSIBLE_COLLECTIONS_PATH=$HOME/.ansible/collections; ansible-lint playbooks/**
0 commit comments