This commit is contained in:
parent
43c793c07f
commit
f7114e1993
15
.drone.yml
15
.drone.yml
@ -4,16 +4,23 @@ kind: pipeline
|
||||
type: docker
|
||||
|
||||
steps:
|
||||
- name: "Ansible Testing: CentOS 9"
|
||||
- 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
|
||||
- hostname
|
||||
- lscpu
|
||||
- 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
|
||||
|
||||
|
||||
- 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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user