Skip to content

Change Workflows to use SMS ARC runners #1056

Change Workflows to use SMS ARC runners

Change Workflows to use SMS ARC runners #1056

Workflow file for this run

---
name: Ansible Lint
on:
push:
branches:
- main
pull_request:
jobs:
ansible-lint:
name: Ansible Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
# Python version being set because of issue with Ubuntu permissions and versions of Python < 3.11
- name: Set up Python
# This is the version of the action for setting up Python, not the Python version.
uses: actions/setup-python@v5
with:
# Semantic version range syntax or exact version of a Python version
python-version: '3.11'
- name: Install Ansible collections
run: |
ansible-galaxy collection install -r requirements.yml
- name: Install pip dependencies
run: |
pip install -r requirements.txt
- name: Install ansible-lint
run: |
pip install ansible-core==2.16.* ansible-lint==24.*
- name: Lint Ansible playbooks
run: |
ansible-lint -v --force-color ansible/*.yml
env:
ANSIBLE_VAULT_PASSWORD: ${{ secrets.ANSIBLE_VAULT_PASSWORD }}