This commit is contained in:
parent
b58f4b8625
commit
4d245ab301
24
.drone.yml
24
.drone.yml
@ -1,5 +1,5 @@
|
|||||||
---
|
---
|
||||||
name: Ansible Linting of drone-test-1
|
name: Test Ansible Linting of drone-test-1
|
||||||
kind: pipeline
|
kind: pipeline
|
||||||
type: docker
|
type: docker
|
||||||
|
|
||||||
@ -11,20 +11,8 @@ steps:
|
|||||||
- dnf install -y python3-pip git hostname
|
- dnf install -y python3-pip git hostname
|
||||||
- pip3 install ansible-core==2.14.11 ansible-lint==6.13.1
|
- pip3 install ansible-core==2.14.11 ansible-lint==6.13.1
|
||||||
|
|
||||||
|
# - mkdir /opt/test
|
||||||
- name: "Ansible Testing: Make repo directory and clone desired repository"
|
# - git clone https://gitea.thezengarden.net/chris/drone-test-1.git /opt/test/drone-test-1
|
||||||
image: quay.io/centos/centos:stream9
|
#
|
||||||
commands:
|
# - ansible-lint /opt/test/drone-test-1
|
||||||
- mkdir /opt/test
|
# - ansible-playbook -v -i 127.0.0.1, /opt/test/drone-test-1/hello.yml
|
||||||
- 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"
|
|
||||||
|
30
.drone.yml.test1
Normal file
30
.drone.yml.test1
Normal file
@ -0,0 +1,30 @@
|
|||||||
|
---
|
||||||
|
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"
|
Loading…
x
Reference in New Issue
Block a user