Skip to content

Commit 1866032

Browse files
authored
Update ansible lint configuration (#3880)
1 parent aff1dee commit 1866032

4 files changed

Lines changed: 9 additions & 9 deletions

File tree

.github/ansible/.ansible-lint.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
offline: false

.github/workflows/run-ci-cd.yaml

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -52,11 +52,6 @@ jobs:
5252
restore-keys: |
5353
pre-commit-${{ runner.os }}-
5454
55-
- name: Install Ansible collections for ansible-lint
56-
run: |
57-
pip install ansible-core
58-
ansible-galaxy collection install -r .github/ansible/requirements.yaml
59-
6055
- name: Run pre-commit
6156
uses: pre-commit/action@2c7b3805fd2a0fd8c1884dcaebf91fc102a13ecd
6257

@@ -674,7 +669,7 @@ jobs:
674669
EOF
675670
676671
- name: Install Ansible collections
677-
run: ansible-galaxy collection install -r requirements.yaml
672+
run: ansible-galaxy collection install -r requirements.yml
678673
working-directory: .github/ansible
679674

680675
- name: Run Nest deploy
@@ -714,7 +709,7 @@ jobs:
714709
EOF
715710
716711
- name: Install Ansible collections
717-
run: ansible-galaxy collection install -r requirements.yaml
712+
run: ansible-galaxy collection install -r requirements.yml
718713
working-directory: .github/ansible
719714

720715
- name: Run proxy deploy
@@ -1052,7 +1047,7 @@ jobs:
10521047
EOF
10531048
10541049
- name: Install Ansible collections
1055-
run: ansible-galaxy collection install -r requirements.yaml
1050+
run: ansible-galaxy collection install -r requirements.yml
10561051
working-directory: .github/ansible
10571052

10581053
- name: Run Nest deploy
@@ -1092,7 +1087,7 @@ jobs:
10921087
EOF
10931088
10941089
- name: Install Ansible collections
1095-
run: ansible-galaxy collection install -r requirements.yaml
1090+
run: ansible-galaxy collection install -r requirements.yml
10961091
working-directory: .github/ansible
10971092

10981093
- name: Run proxy deploy

.pre-commit-config.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,11 @@ repos:
1313
rev: v26.1.1
1414
hooks:
1515
- id: ansible-lint
16+
additional_dependencies:
17+
- ansible-core
1618
args:
19+
- -c
20+
- .github/ansible/.ansible-lint.yaml
1721
- .github/ansible
1822
files: ^\.github/ansible/.*\.ya?ml$
1923
language_version: python3

0 commit comments

Comments
 (0)