Enable actions; lint only
All checks were successful
Ansible Code Pipeline / Ansible-Development-Pipeline (ansible-dev-fedora41) (push) Successful in 10s
All checks were successful
Ansible Code Pipeline / Ansible-Development-Pipeline (ansible-dev-fedora41) (push) Successful in 10s
This commit is contained in:
3
.ci.env
Normal file
3
.ci.env
Normal file
@ -0,0 +1,3 @@
|
||||
export ANSIBLE_LINT_EXCLUSION="--exclude collections/ansible_collections --exclude .gitea --exclude roles/verified_reboot"
|
||||
export ANSIBLE_INVENTORY="-i 127.0.0.1, --connection=local"
|
||||
export ANSIBLE_PLAYBOOK="lazy_reboot.yml"
|
34
.gitea/workflows/ansible-test.yml
Normal file
34
.gitea/workflows/ansible-test.yml
Normal file
@ -0,0 +1,34 @@
|
||||
name: Ansible Code Pipeline
|
||||
run-name: ${{ gitea.actor }} is running Ansible Code Pipeline
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
|
||||
jobs:
|
||||
Ansible-Development-Pipeline:
|
||||
strategy:
|
||||
matrix:
|
||||
os: [ ansible-dev-fedora41 ]
|
||||
runs-on: ${{ matrix.os }}
|
||||
steps:
|
||||
- name: Clone repository
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Ansible Environment Verify
|
||||
run: |
|
||||
whoami
|
||||
. ./.ci.env
|
||||
env
|
||||
git log -1
|
||||
ansible --version
|
||||
ansible-lint --version
|
||||
|
||||
- name: Install Ansible Galaxy Dependencies
|
||||
run: |
|
||||
ansible-galaxy install -r roles/requirements.yml
|
||||
|
||||
- name: Run Ansible-Lint
|
||||
run: |
|
||||
. ./.ci.env
|
||||
ansible-lint --offline $ANSIBLE_LINT_EXCLUSION
|
Reference in New Issue
Block a user