Skip to content

Commit 2158782

Browse files
authored
trying to do offline lint (#259)
* trying to do offline lint because prior tasks already installs collections * trying to make CI run after PR to show if pipeline isn't working * verifying fix works by changing which action to use * fixing lint error * putting back correct action after proving change worked
1 parent ef3b456 commit 2158782

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

.ansible-lint

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,16 @@ exclude_paths:
2121
# verbosity: 1
2222

2323
# Mock modules or roles in order to pass ansible-playbook --syntax-check
24-
# Mocking these modules so they do not give errors due to the galaxy importer
24+
# Mocking these modules so they do not give errors due to the galaxy importer
2525
# not being able to pull community.general (not being validated)
2626
mock_modules:
2727
- community.general.redhat_subscription
2828
- community.general.modprobe
2929
- community.general.archive
3030
- community.general.yum_versionlock
3131
- community.general.rhsm_repository
32+
- ansible.posix.selinux
33+
- ansible.posix.mount
3234

3335
# mock_roles:
3436
# - mocked_role

.github/workflows/ansible-lint.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,6 @@ jobs:
2727

2828
- name: Run ansible-lint
2929
uses: ansible/ansible-lint@main # or version tag instead of 'main'
30+
with:
31+
args: "--offline"
3032
...

.github/workflows/ansible-test.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ concurrency:
66
cancel-in-progress: true
77

88
on:
9+
push:
10+
branches: [main]
911
pull_request:
1012
branches: [main]
1113
workflow_call:

0 commit comments

Comments
 (0)