Initialize Project

This commit is contained in:
2025-08-11 21:41:44 +04:00
commit a871ef846e
30 changed files with 2955 additions and 0 deletions

40
.gitea/workflows/main.yml Normal file
View File

@@ -0,0 +1,40 @@
name: Run tests and ansible-playbook
run-name: Run tests and ansible-playbook
on:
push:
branches:
- master
workflow_dispatch:
# inputs:
# logLevel:
# description: 'Log level'
# required: true
# default: 'info'
# type: choice
# options:
# - info
# - warning
# - debug
jobs:
perform-ansible-lint:
name: Perform Ansible Lint
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install pip, venv and git
run: |
apt update -qy
apt install -y python3-pip python3.10-venv git
- name: Configure safe directory
run: git config --global --add safe.directory '*'
- name: Run setup_venv.sh
run: |
chmod +x setup_venv.sh
./setup_venv.sh
- name: Run ansible-lint
run: |
source ./venv/bin/activate
PY_COLORS=1 ANSIBLE_FORCE_COLOR=1 ANSIBLE_CONFIG=./ansible.cfg ansible-lint --exclude=inventory