Initial commit

This commit is contained in:
2024-09-24 15:12:33 +02:00
commit 7366659355
5 changed files with 112 additions and 0 deletions
+39
View File
@@ -0,0 +1,39 @@
name: Validate ansible playbooks
on:
pull_request:
branches:
- feature/**
paths:
- "ansible/**"
types:
- opened
- synchronize
- reopened
jobs:
plan:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Setup Sectool
uses: a13labs/setup-sectool@v1
- name: Install Python and required packages
run: |
sudo apt-get update
sudo apt-get install -y python3-pip
python3 -m pip install -r requirements.txt
- name: Ansible Lint
run: |
cd ansible
ansible-lint .
- name: Ansible Playbook Syntax Check
run: |
cd ansible
ansible-playbook --syntax-check playbook_*.yml