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
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:
commit
ecd777bcc8
5
.ansible-lint
Normal file
5
.ansible-lint
Normal file
@ -0,0 +1,5 @@
|
||||
skip_list:
|
||||
- yaml[colons]
|
||||
- yaml[empty-lines]
|
||||
- yaml[line-length]
|
||||
- no-changed-when
|
3
.ci.env
Normal file
3
.ci.env
Normal 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"
|
40
.gitea/workflows/ansible-test.yml
Normal file
40
.gitea/workflows/ansible-test.yml
Normal 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
10
survey.yml
Normal 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!
|
Loading…
x
Reference in New Issue
Block a user