callback_demo/.gitea/workflows/ansible-centos9.yml
Chris Hammer 0836b26a6f
Some checks failed
Ansible Test / Explore-Gitea-Actions (push) Failing after 14s
remove demo; add ansible tests
2023-12-13 00:44:09 -05:00

39 lines
944 B
YAML

name: Ansible Test
run-name: ${{ gitea.actor }} is tesing Ansible with Gitea Actions
on: [push]
jobs:
Explore-Gitea-Actions:
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
- name: Run Ansible-Playbook
run: |
ansible-playbook -v -i 127.0.0.1, --connection=local callback_demo.yml