You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+5-1Lines changed: 5 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -172,5 +172,9 @@ docker run --rm \
172
172
```
173
173
174
174
```shell
175
-
ansible-lint -c .ansible-lint.yml ansible/
175
+
ANSIBLE_COLLECTIONS_PATH=.ansible/collections \
176
+
ansible-lint -c .ansible-lint.yml ansible/
176
177
```
178
+
179
+
Specifying `ANSIBLE_COLLECTIONS_PATH` ensures `ansible-lint` downloads collections and roles under the `.ansible` directory, separating them from our own roles under the `ansible` directory.
180
+
We exclude these downloaded files from linting by listing `.ansible` under `exclude_paths` in `.ansible-lint.yml`.
0 commit comments