callback_demo/.gitea/workflows/ansible-centos9.yml
Chris Hammer 2b090ad7bb
Some checks failed
Ansible Test / Callback-Demo-Ansible-Pipeline (push) Failing after 14s
add .gitea ansible-lint exclusion
2023-12-13 00:47:00 -05:00

39 lines
970 B
YAML

name: Ansible Test
run-name: ${{ gitea.actor }} is tesing Ansible with Gitea Actions
on: [push]
jobs:
Callback-Demo-Ansible-Pipeline:
runs-on: ansible-dev-centos9
steps:
- name: Clone repository
uses: actions/checkout@v3
- name: Where are we?
run: |
pwd
- name: List files in the repository
run: |
ls ${{ gitea.workspace }}
- name: Ansible Version
run: |
ansible --version
- name: Ansible-lint Version
run: |
ansible-lint --version
- name: Ansible Galaxy Requirements Install
run: |
ansible-galaxy collection install -r collections/requirements.yml
- name: Run Ansible-Lint
run: |
ansible-lint --offline --exclude collections/ansible_collections --exclude .gitea
- name: Run Ansible-Playbook
run: |
ansible-playbook -v -i 127.0.0.1, --connection=local callback_demo.yml