Merge pull request 'BaseOS v1.0.36' (#20) from testing into main
Reviewed-on: #20
This commit is contained in:
@ -1,4 +1,3 @@
|
|||||||
# 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
154
.drone.yml
@ -1,154 +0,0 @@
|
|||||||
---
|
|
||||||
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,17 +7,15 @@ on:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
Ansible-Development-Pipeline:
|
Ansible-Development-Pipeline:
|
||||||
strategy:
|
runs-on: ansible-dev-centos
|
||||||
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: |
|
||||||
. ./.drone.env
|
whoami
|
||||||
|
. ./.ci.env
|
||||||
env
|
env
|
||||||
git log -1
|
git log -1
|
||||||
ansible --version
|
ansible --version
|
||||||
@ -29,10 +27,10 @@ jobs:
|
|||||||
|
|
||||||
- name: Run Ansible-Lint
|
- name: Run Ansible-Lint
|
||||||
run: |
|
run: |
|
||||||
. ./.drone.env
|
. ./.ci.env
|
||||||
ansible-lint --offline $ANSIBLE_LINT_EXCLUSION
|
ansible-lint --offline $ANSIBLE_LINT_EXCLUSION
|
||||||
|
|
||||||
- name: Run Ansible-Playbook
|
- name: Run Ansible-Playbook
|
||||||
run: |
|
run: |
|
||||||
. ./.drone.env
|
. ./.ci.env
|
||||||
ansible-playbook -v $ANSIBLE_INVENTORY $ANSIBLE_PLAYBOOK
|
ansible-playbook -v $ANSIBLE_INVENTORY $ANSIBLE_PLAYBOOK
|
||||||
|
@ -14,6 +14,7 @@ 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.34
|
version: 1.0.36
|
||||||
|
|
||||||
# Galaxy Collections
|
# Galaxy Collections
|
||||||
- name: community.general
|
- name: community.general
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
echo "Which environment to test? (centos9, fedora39, debian11, debian12)"
|
echo "Which environment to test? (centos, fedora, debian)"
|
||||||
read test_environment
|
read test_environment
|
||||||
|
|
||||||
CNAME="testing-${test_environment}"
|
CNAME="testing-${test_environment}"
|
||||||
|
Reference in New Issue
Block a user