2021-10-22 11:45:20 +00:00
|
|
|
---
|
|
|
|
stages:
|
2022-01-18 09:19:19 +00:00
|
|
|
- ansible lint
|
2021-12-19 10:17:49 +00:00
|
|
|
- x86 Systems
|
2021-10-22 11:45:20 +00:00
|
|
|
|
2022-01-18 09:19:19 +00:00
|
|
|
Ansible Lint:
|
|
|
|
stage: ansible lint
|
|
|
|
image:
|
|
|
|
name: fedora:latest
|
|
|
|
before_script:
|
|
|
|
- dnf install -y git ansible python3-ansible-lint
|
|
|
|
- export ANSIBLE_CONFIG=$(pwd)/ansible.cfg
|
|
|
|
- ./install-ansible-modules.sh
|
|
|
|
- ansible-lint --version
|
|
|
|
script:
|
|
|
|
- ansible-lint --force-color . &> lint-output.txt
|
|
|
|
- cat lint-output.txt
|
|
|
|
- if [ ! -z "$(cat lint-output.txt)" ]; then echo "Lint returned with warnings/fails"; exit 1; fi
|
|
|
|
|
2021-10-22 11:45:20 +00:00
|
|
|
Run Workstation playbook on fedora:
|
2021-12-19 10:17:49 +00:00
|
|
|
stage: x86 Systems
|
2022-01-18 09:19:19 +00:00
|
|
|
image:
|
|
|
|
name: fedora:latest
|
2021-10-22 11:45:20 +00:00
|
|
|
script:
|
|
|
|
- dnf install -y ansible python3-pip
|
|
|
|
- pip3 install -r ci-requirements.txt
|
|
|
|
- mkdir /tmp/artifacts
|
2021-12-14 11:20:38 +00:00
|
|
|
- ./run_play.sh workstation
|
|
|
|
- mv /tmp/artifacts/workstation-*.xml report.xml
|
|
|
|
artifacts:
|
|
|
|
when: always
|
|
|
|
reports:
|
|
|
|
junit: report.xml
|
|
|
|
|
|
|
|
Run cli-tools playbook on centos:
|
2021-12-19 10:17:49 +00:00
|
|
|
stage: x86 Systems
|
2022-01-18 09:19:19 +00:00
|
|
|
image:
|
2022-02-02 08:13:19 +00:00
|
|
|
name: quay.io/centos/centos:stream8
|
2021-12-14 11:20:38 +00:00
|
|
|
script:
|
|
|
|
- dnf install -y epel-release dnf-plugins-core
|
|
|
|
- dnf install -y --nogpgcheck https://download1.rpmfusion.org/free/el/rpmfusion-free-release-8.noarch.rpm https://download1.rpmfusion.org/nonfree/el/rpmfusion-nonfree-release-8.noarch.rpm
|
|
|
|
- dnf makecache
|
|
|
|
- dnf install -y ansible python3-pip
|
|
|
|
- pip3 install -r ci-requirements.txt
|
|
|
|
- mkdir /tmp/artifacts
|
|
|
|
- ./run_play.sh cli-tools
|
|
|
|
- mv /tmp/artifacts/cli-tools-*.xml report.xml
|
2021-10-22 11:45:20 +00:00
|
|
|
artifacts:
|
|
|
|
when: always
|
|
|
|
reports:
|
|
|
|
junit: report.xml
|
|
|
|
|
|
|
|
Run Workstation playbook on ubuntu:
|
2021-12-19 10:17:49 +00:00
|
|
|
stage: x86 Systems
|
2022-01-18 09:19:19 +00:00
|
|
|
image:
|
|
|
|
name: ubuntu:latest
|
2021-10-22 11:45:20 +00:00
|
|
|
script:
|
2021-12-14 11:20:38 +00:00
|
|
|
- export DEBIAN_FRONTEND=noninteractive
|
2021-10-22 11:45:20 +00:00
|
|
|
- apt-get update
|
2021-12-14 11:20:38 +00:00
|
|
|
- apt install -y software-properties-common
|
|
|
|
- add-apt-repository -y --update ppa:ansible/ansible
|
2021-10-22 11:45:20 +00:00
|
|
|
- apt-get install -y ansible python3-pip python3-apt
|
|
|
|
- pip3 install -r ci-requirements.txt
|
|
|
|
- mkdir /tmp/artifacts
|
2021-12-14 11:20:38 +00:00
|
|
|
- ./run_play.sh workstation
|
2021-10-22 11:45:20 +00:00
|
|
|
- mv /tmp/artifacts/workstation-*.xml report.xml
|
|
|
|
artifacts:
|
|
|
|
when: always
|
|
|
|
reports:
|
|
|
|
junit: report.xml
|
2021-12-14 11:20:38 +00:00
|
|
|
|
|
|
|
Run cli-tools playbook on debian:
|
2021-12-19 10:17:49 +00:00
|
|
|
stage: x86 Systems
|
2022-01-18 09:19:19 +00:00
|
|
|
image:
|
|
|
|
name: debian:latest
|
2021-12-14 11:20:38 +00:00
|
|
|
script:
|
|
|
|
- apt-get update
|
|
|
|
- apt-get install -y ansible python3-pip python3-apt
|
|
|
|
- pip3 install -r ci-requirements.txt
|
|
|
|
- mkdir /tmp/artifacts
|
|
|
|
- ./run_play.sh cli-tools
|
|
|
|
- mv /tmp/artifacts/cli-tools-*.xml report.xml
|
|
|
|
artifacts:
|
|
|
|
when: always
|
|
|
|
reports:
|
|
|
|
junit: report.xml
|
|
|
|
|