Compare commits
17 Commits
testing
...
3ab4a20993
Author | SHA1 | Date | |
---|---|---|---|
3ab4a20993 | |||
3456c3031c | |||
b6e0d247ed | |||
ff7ad6add4 | |||
8e1a24476b | |||
081f0a5211 | |||
c826d8f0c7 | |||
bcf19b78b7 | |||
c4bf6b5868 | |||
f237fc18e4 | |||
4f24574244 | |||
3fb2a63137 | |||
7f939a5770 | |||
fc3dced25a | |||
2340a3939c | |||
6b0dfcd663 | |||
fd3003ad11 |
@ -1,3 +1,4 @@
|
|||||||
|
# export ANSIBLE_LINT_EXCLUSION="--exclude collections/ansible_collections/ansible* --exclude collections/ansible_collections/community* --exclude .gitea"
|
||||||
export ANSIBLE_LINT_EXCLUSION="--exclude collections/ansible_collections --exclude .gitea"
|
export ANSIBLE_LINT_EXCLUSION="--exclude collections/ansible_collections --exclude .gitea"
|
||||||
export ANSIBLE_INVENTORY="-i 127.0.0.1, --connection=local"
|
export ANSIBLE_INVENTORY="-i 127.0.0.1, --connection=local"
|
||||||
export ANSIBLE_PLAYBOOK="baseos.yml"
|
export ANSIBLE_PLAYBOOK="baseos.yml"
|
154
.drone.yml
Normal file
154
.drone.yml
Normal file
@ -0,0 +1,154 @@
|
|||||||
|
---
|
||||||
|
kind: pipeline
|
||||||
|
type: docker
|
||||||
|
name: CentOS_9-Ansible-Pipeline
|
||||||
|
|
||||||
|
trigger:
|
||||||
|
branch:
|
||||||
|
exclude:
|
||||||
|
- main
|
||||||
|
event: [push]
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: ansible_environment_verify
|
||||||
|
image: gitea.thezengarden.net/podman/ansible-dev/centos9:release
|
||||||
|
commands:
|
||||||
|
- . ./.drone.env
|
||||||
|
- env
|
||||||
|
- git log -1
|
||||||
|
- ansible --version
|
||||||
|
- ansible-lint --version
|
||||||
|
|
||||||
|
- name: ansible_galaxy_requirements
|
||||||
|
image: gitea.thezengarden.net/podman/ansible-dev/centos9:release
|
||||||
|
commands:
|
||||||
|
- ansible-galaxy install -r requirements.yml
|
||||||
|
|
||||||
|
- name: ansible_lint
|
||||||
|
image: gitea.thezengarden.net/podman/ansible-dev/centos9:release
|
||||||
|
commands:
|
||||||
|
- . ./.drone.env
|
||||||
|
- ansible-lint --offline $ANSIBLE_LINT_EXCLUSION
|
||||||
|
|
||||||
|
- name: ansible_playbook_execution
|
||||||
|
image: gitea.thezengarden.net/podman/ansible-dev/centos9:release
|
||||||
|
commands:
|
||||||
|
- . ./.drone.env
|
||||||
|
- ansible-playbook -v $ANSIBLE_INVENTORY $ANSIBLE_PLAYBOOK
|
||||||
|
|
||||||
|
|
||||||
|
---
|
||||||
|
kind: pipeline
|
||||||
|
type: docker
|
||||||
|
name: Fedora_39-Ansible-Pipeline
|
||||||
|
|
||||||
|
trigger:
|
||||||
|
branch:
|
||||||
|
exclude:
|
||||||
|
- main
|
||||||
|
event: [push]
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: ansible_environment_verify
|
||||||
|
image: gitea.thezengarden.net/podman/ansible-dev/fedora39:release
|
||||||
|
commands:
|
||||||
|
- . ./.drone.env
|
||||||
|
- env
|
||||||
|
- git log -1
|
||||||
|
- ansible --version
|
||||||
|
- ansible-lint --version
|
||||||
|
|
||||||
|
- name: ansible_galaxy_requirements
|
||||||
|
image: gitea.thezengarden.net/podman/ansible-dev/fedora39:release
|
||||||
|
commands:
|
||||||
|
- ansible-galaxy install -r requirements.yml
|
||||||
|
|
||||||
|
- name: ansible_lint
|
||||||
|
image: gitea.thezengarden.net/podman/ansible-dev/fedora39:release
|
||||||
|
commands:
|
||||||
|
- . ./.drone.env
|
||||||
|
- ansible-lint --offline $ANSIBLE_LINT_EXCLUSION
|
||||||
|
|
||||||
|
- name: ansible_playbook_execution
|
||||||
|
image: gitea.thezengarden.net/podman/ansible-dev/fedora39:release
|
||||||
|
commands:
|
||||||
|
- . ./.drone.env
|
||||||
|
- ansible-playbook -v $ANSIBLE_INVENTORY $ANSIBLE_PLAYBOOK
|
||||||
|
|
||||||
|
|
||||||
|
---
|
||||||
|
kind: pipeline
|
||||||
|
type: docker
|
||||||
|
name: Debian_11-Ansible-Pipeline
|
||||||
|
|
||||||
|
trigger:
|
||||||
|
branch:
|
||||||
|
exclude:
|
||||||
|
- main
|
||||||
|
event: [push]
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: ansible_environment_verify
|
||||||
|
image: gitea.thezengarden.net/podman/ansible-dev/debian11:release
|
||||||
|
commands:
|
||||||
|
- . ./.drone.env
|
||||||
|
- env
|
||||||
|
- git log -1
|
||||||
|
- ansible --version
|
||||||
|
- ansible-lint --version
|
||||||
|
|
||||||
|
- name: ansible_galaxy_requirements
|
||||||
|
image: gitea.thezengarden.net/podman/ansible-dev/debian11:release
|
||||||
|
commands:
|
||||||
|
- ansible-galaxy install -r requirements.yml
|
||||||
|
|
||||||
|
- name: ansible_lint
|
||||||
|
image: gitea.thezengarden.net/podman/ansible-dev/debian11:release
|
||||||
|
commands:
|
||||||
|
- . ./.drone.env
|
||||||
|
- ansible-lint --offline $ANSIBLE_LINT_EXCLUSION
|
||||||
|
|
||||||
|
- name: ansible_playbook_execution
|
||||||
|
image: gitea.thezengarden.net/podman/ansible-dev/debian11:release
|
||||||
|
commands:
|
||||||
|
- . ./.drone.env
|
||||||
|
- ansible-playbook -v $ANSIBLE_INVENTORY $ANSIBLE_PLAYBOOK
|
||||||
|
|
||||||
|
|
||||||
|
---
|
||||||
|
kind: pipeline
|
||||||
|
type: docker
|
||||||
|
name: Debian_12-Ansible-Pipeline
|
||||||
|
|
||||||
|
trigger:
|
||||||
|
branch:
|
||||||
|
exclude:
|
||||||
|
- main
|
||||||
|
event: [push]
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: ansible_environment_verify
|
||||||
|
image: gitea.thezengarden.net/podman/ansible-dev/debian12:release
|
||||||
|
commands:
|
||||||
|
- . ./.drone.env
|
||||||
|
- env
|
||||||
|
- git log -1
|
||||||
|
- ansible --version
|
||||||
|
- ansible-lint --version
|
||||||
|
|
||||||
|
- name: ansible_galaxy_requirements
|
||||||
|
image: gitea.thezengarden.net/podman/ansible-dev/debian12:release
|
||||||
|
commands:
|
||||||
|
- ansible-galaxy install -r requirements.yml
|
||||||
|
|
||||||
|
- name: ansible_lint
|
||||||
|
image: gitea.thezengarden.net/podman/ansible-dev/debian12:release
|
||||||
|
commands:
|
||||||
|
- . ./.drone.env
|
||||||
|
- ansible-lint --offline $ANSIBLE_LINT_EXCLUSION
|
||||||
|
|
||||||
|
- name: ansible_playbook_execution
|
||||||
|
image: gitea.thezengarden.net/podman/ansible-dev/debian12:release
|
||||||
|
commands:
|
||||||
|
- . ./.drone.env
|
||||||
|
- ansible-playbook -v $ANSIBLE_INVENTORY $ANSIBLE_PLAYBOOK
|
@ -7,15 +7,17 @@ on:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
Ansible-Development-Pipeline:
|
Ansible-Development-Pipeline:
|
||||||
runs-on: ansible-dev-centos
|
strategy:
|
||||||
|
matrix:
|
||||||
|
os: [ ansible-dev-centos9, ansible-dev-fedora39, ansible-dev-debian11, ansible-dev-debian12 ]
|
||||||
|
runs-on: ${{ matrix.os }}
|
||||||
steps:
|
steps:
|
||||||
- name: Clone repository
|
- name: Clone repository
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Ansible Environment Verify
|
- name: Ansible Environment Verify
|
||||||
run: |
|
run: |
|
||||||
whoami
|
. ./.drone.env
|
||||||
. ./.ci.env
|
|
||||||
env
|
env
|
||||||
git log -1
|
git log -1
|
||||||
ansible --version
|
ansible --version
|
||||||
@ -27,10 +29,10 @@ jobs:
|
|||||||
|
|
||||||
- name: Run Ansible-Lint
|
- name: Run Ansible-Lint
|
||||||
run: |
|
run: |
|
||||||
. ./.ci.env
|
. ./.drone.env
|
||||||
ansible-lint --offline $ANSIBLE_LINT_EXCLUSION
|
ansible-lint --offline $ANSIBLE_LINT_EXCLUSION
|
||||||
|
|
||||||
- name: Run Ansible-Playbook
|
- name: Run Ansible-Playbook
|
||||||
run: |
|
run: |
|
||||||
. ./.ci.env
|
. ./.drone.env
|
||||||
ansible-playbook -v $ANSIBLE_INVENTORY $ANSIBLE_PLAYBOOK
|
ansible-playbook -v $ANSIBLE_INVENTORY $ANSIBLE_PLAYBOOK
|
||||||
|
@ -14,7 +14,6 @@ timeout = 30
|
|||||||
host_key_checking = false
|
host_key_checking = false
|
||||||
display_skipped_hosts = false
|
display_skipped_hosts = false
|
||||||
deprecation_warnings = false
|
deprecation_warnings = false
|
||||||
force_color = true
|
|
||||||
|
|
||||||
# callback_whitelist is deprecated
|
# callback_whitelist is deprecated
|
||||||
# we only include here for backwards compatibility
|
# we only include here for backwards compatibility
|
||||||
|
@ -4,7 +4,7 @@ collections:
|
|||||||
- name: jchristianh.baseos
|
- name: jchristianh.baseos
|
||||||
source: https://gitea.thezengarden.net/ansible_collections/ansible-collection-baseos.git
|
source: https://gitea.thezengarden.net/ansible_collections/ansible-collection-baseos.git
|
||||||
type: git
|
type: git
|
||||||
version: 1.0.36
|
version: 1.0.34
|
||||||
|
|
||||||
# Galaxy Collections
|
# Galaxy Collections
|
||||||
- name: community.general
|
- name: community.general
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
echo "Which environment to test? (centos, fedora, debian)"
|
echo "Which environment to test? (centos9, fedora39, debian11, debian12)"
|
||||||
read test_environment
|
read test_environment
|
||||||
|
|
||||||
CNAME="testing-${test_environment}"
|
CNAME="testing-${test_environment}"
|
||||||
|
Reference in New Issue
Block a user