Merge pull request 'cruft removal' (#8) from development into main
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
Reviewed-on: #8
This commit is contained in:
commit
f3cd8edf67
@ -1,30 +0,0 @@
|
|||||||
---
|
|
||||||
name: Ansible Linting of drone-test-1
|
|
||||||
kind: pipeline
|
|
||||||
type: docker
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- name: "Ansible Testing: Install required packages and Python modules"
|
|
||||||
image: quay.io/centos/centos:stream9
|
|
||||||
commands:
|
|
||||||
- dnf update -y
|
|
||||||
- dnf install -y python3-pip git hostname
|
|
||||||
- pip3 install ansible-core==2.14.11 ansible-lint==6.13.1
|
|
||||||
|
|
||||||
|
|
||||||
- name: "Ansible Testing: Make repo directory and clone desired repository"
|
|
||||||
image: quay.io/centos/centos:stream9
|
|
||||||
commands:
|
|
||||||
- mkdir /opt/test
|
|
||||||
- git clone https://gitea.thezengarden.net/chris/drone-test-1.git /opt/test/drone-test-1
|
|
||||||
depends_on:
|
|
||||||
- "Ansible Testing: Install required packages and Python modules"
|
|
||||||
|
|
||||||
|
|
||||||
- name: "Ansible Testing: Run Ansible-Lint and Ansible-Playbook against cloned repo"
|
|
||||||
image: quay.io/centos/centos:stream9
|
|
||||||
commands:
|
|
||||||
- ansible-lint /opt/test/drone-test-1
|
|
||||||
- ansible-playbook -v -i 127.0.0.1, /opt/test/drone-test-1/hello.yml
|
|
||||||
depends_on:
|
|
||||||
- "Ansible Testing: Make repo directory and clone desired repository"
|
|
@ -1,21 +0,0 @@
|
|||||||
---
|
|
||||||
name: Ansible Linting of drone-test-1
|
|
||||||
kind: pipeline
|
|
||||||
type: docker
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- name: Prepare CentOS 8 image, clone, and test code
|
|
||||||
image: centos:8
|
|
||||||
commands:
|
|
||||||
- hostname
|
|
||||||
- lscpu
|
|
||||||
- dnf --disablerepo '*' --enablerepo=extras swap centos-linux-repos centos-stream-repos -y
|
|
||||||
- dnf distro-sync -y
|
|
||||||
- dnf update -y
|
|
||||||
- hostname
|
|
||||||
- dnf install -y ansible-core git
|
|
||||||
- pip3 install ansible-lint
|
|
||||||
- mkdir /opt/test
|
|
||||||
- git clone https://gitea.thezengarden.net/chris/drone-test-1.git /opt/test/drone-test-1
|
|
||||||
- ansible-lint /opt/test/drone-test-1
|
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user