-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (29 loc) · 1.06 KB
/
ansible-lint.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
---
name: ansible-lint
on:
push:
branches:
- main
jobs:
build:
name: Ansible Lint # Naming the build is important to use it as a status check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install ansible
run: pipx install ansible-base
- name: Install ansible
run: pipx install ansible-lint
- name: Add ~/.local/.bin to path for pipx packages
run: echo "$HOME/.local/bin" >> $GITHUB_PATH
# - uses: actions/setup-python@v5
# with:
# python-version: "3.9"
- name: Install Ansible-Galaxy Requirements
run: ansible-galaxy collection install -r collections/requirements.yml
- name: "Remove the vault_password_file entry from ansible.cfg. Avoid: 'ERROR! The vault password file <> was not found'"
run: sed -i '/vault_password_file\s*=/d' ansible.cfg && cat ansible.cfg
- name: Temp
run: sed -i '/- configure_archivepodcast_secrets/d' build_podc.yml && cat build_podc.yml
- name: Run ansible-lint
run: ansible-lint