Initial project commit
Some checks failed
Ansible Code Pipeline / Ansible-Development-Pipeline (ansible-dev-centos9) (push) Failing after 7s
Ansible Code Pipeline / Ansible-Development-Pipeline (ansible-dev-debian12) (push) Failing after 6s
Ansible Code Pipeline / Ansible-Development-Pipeline (ansible-dev-fedora39) (push) Failing after 7s

This commit is contained in:
Chris Hammer 2024-12-20 17:08:53 -05:00
commit ecd777bcc8
4 changed files with 58 additions and 0 deletions

5
.ansible-lint Normal file
View File

@ -0,0 +1,5 @@
skip_list:
- yaml[colons]
- yaml[empty-lines]
- yaml[line-length]
- no-changed-when

3
.ci.env Normal file
View File

@ -0,0 +1,3 @@
export ANSIBLE_LINT_EXCLUSION="--exclude collections/ansible_collections --exclude .gitea"
export ANSIBLE_INVENTORY="-i 127.0.0.1, --connection=local"
export ANSIBLE_PLAYBOOK="survey.yml"

View File

@ -0,0 +1,40 @@
name: Ansible Code Pipeline
run-name: ${{ gitea.actor }} is running Ansible Code Pipeline
on:
push:
branches:
- development
- main
jobs:
Ansible-Development-Pipeline:
strategy:
matrix:
os: [ ansible-dev-centos9, ansible-dev-fedora39, ansible-dev-debian12 ]
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 requirements.yml
- name: Run Ansible-Lint
run: |
. ./.ci.env
ansible-lint --offline $ANSIBLE_LINT_EXCLUSION
- name: Run Ansible-Playbook
run: |
. ./.ci.env
ansible-playbook -v $ANSIBLE_INVENTORY $ANSIBLE_PLAYBOOK

10
survey.yml Normal file
View File

@ -0,0 +1,10 @@
---
- name: AAP and Surveys
hosts: all
gather_facts: false
become: false
tasks:
- name: Say hello
ansible.builtin.debug:
msg: Hello world!