Skip to content

Updated wud & alerting #37

Updated wud & alerting

Updated wud & alerting #37

Workflow file for this run

---
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
name: Ansible validation
on:
pull_request: {}
push:
branches:
- main
permissions:
contents: read
jobs:
validate:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
with:
persist-credentials: false
- uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5
with:
python-version: '3.13'
- name: Install Ansible tooling
run: python -m pip install --requirement requirements.txt
- name: Install Ansible collections
run: ansible-galaxy collection install --requirements-file requirements.yml
- name: Lint YAML
run: yamllint .
- name: Lint Ansible
run: ansible-lint
- name: Syntax check playbooks
shell: bash
run: |
set -euo pipefail
shopt -s nullglob
playbooks=(playbooks/*.yml playbooks/*.yaml)
if (( ${#playbooks[@]} == 0 )); then
echo "No playbooks found." >&2
exit 1
fi
for playbook in "${playbooks[@]}"; do
ansible-playbook --syntax-check --inventory 'localhost,' "$playbook"
done
- name: Test Dawarich role
env:
ANSIBLE_ALLOW_BROKEN_CONDITIONALS: 'true'
run: molecule test --scenario-name dawarich