Skip to content

Bump ansible from 10.5.0 to 11.1.0 #189

Bump ansible from 10.5.0 to 11.1.0

Bump ansible from 10.5.0 to 11.1.0 #189

Workflow file for this run

###
# ```{rubric} Ansible Lint Jobs
# ```
# ---
# This action lints Ansible code for quality.
#
# ```{literalinclude} .github/workflows/ansible-lint.yml
# :language: yaml
# :caption: .github/workflows/ansible-lint.yml
# ```
name: Ansible Lint
on:
pull_request:
branches: ["main", "stable", "release/v*"]
push:
branches:
- main
workflow_dispatch:
jobs:
build:
###
# Naming the build is important to use it as a status check
name: Ansible Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@main
- name: Set up Python
uses: actions/setup-python@main
with:
python-version: 3.12
- name: Install requirements
run: |
python3 -m venv .venv
.venv/bin/pip3 install pipenv
.venv/bin/pipenv requirements --dev > reqs
python3 -m pip install -r reqs
ansible-galaxy collection install community.crypto
ansible-galaxy collection install community.general
- name: Make ansible directory
run: |
sudo mkdir -pv /etc/ansible
SUSER=$(whoami)
sudo chown ${SUSER} /etc/ansible
touch /etc/ansible/vault
echo "Pass" > /etc/ansible/vault
- name: Run ansible-lint
###
# or version tag instead of 'main'
uses: ansible/ansible-lint@main