Skip to content

[ISV-6393] Update playbooks for ansible 2.19 #923

[ISV-6393] Update playbooks for ansible 2.19

[ISV-6393] Update playbooks for ansible 2.19 #923

name: "Run ansible-lint and yamllint for this repo."
# Controls when the action will run.
on:
# Triggers the workflow on push events and pull_request
#push:
pull_request:
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
runs-on: ubuntu-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2
# Runs a set of commands using the runners shell
- name: "Ansible-lint"
# Install ansible-lint(5.0.6) together with yamllint(1.26.0) and run the linting on the whole repo
run: |
set -e
python -m pip install ansible
pip install ansible-lint==25.9.2 yamllint==1.34.0
ansible-lint -c ansible-lint.yml *.yml
- name: "Yaml-lint"
run: |
yamllint -c yamllint.yml -f parsable --no-warnings .