drone-test-1/.drone.yml
Chris Hammer 4d245ab301
All checks were successful
continuous-integration/drone/push Build is passing
update .drone.yml
2023-11-16 21:05:45 -05:00

19 lines
591 B
YAML

---
name: Test 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
# - 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
# - ansible-playbook -v -i 127.0.0.1, /opt/test/drone-test-1/hello.yml