refactor(ci): move collection dependencies to where ansible knows to pick it up

Signed-off-by: gardar <gardar@users.noreply.github.com>
This commit is contained in:
gardar 2022-11-25 08:22:56 +00:00
parent e37f7fe8d7
commit 45cd0a52c5
No known key found for this signature in database
GPG key ID: 75FAE37CBA8C13C2
2 changed files with 7 additions and 17 deletions

View file

@ -1,27 +1,13 @@
---
name: Ansible Lint # feel free to pick your own name
name: Ansible Lint
on: [push, pull_request]
jobs:
build:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install community.crypto
uses: nick-invision/retry@v2
with:
timeout_minutes: 3
max_attempts: 3
command: ansible-galaxy collection install 'community.crypto' -p /github/home/.ansible/collections/
- name: Install community.general
uses: nick-invision/retry@v2
with:
timeout_minutes: 3
max_attempts: 3
command: ansible-galaxy collection install 'community.general' -p /github/home/.ansible/collections/
- uses: actions/checkout@v3
- name: Lint roles
uses: ansible/ansible-lint-action@main

4
requirements.yml Normal file
View file

@ -0,0 +1,4 @@
---
collections:
- community.general
- community.crypto