update .drone.yml; add requirements.yml for ansible-galaxy
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Chris Hammer 2023-11-16 22:46:31 -05:00
parent 0def5aff55
commit 68fa7ad143
2 changed files with 19 additions and 11 deletions

View File

@ -4,16 +4,10 @@ kind: pipeline
type: docker
steps:
- name: "Ansible Testing: Install required packages and Python modules"
image: quay.io/centos/centos:stream9
- name: Testing Drone CI with a simple Ansible Playbook
image: gitea.thezengarden.net/podman/images/ansible-dev:latest
commands:
- dnf update -y
- dnf install -y python3-pip git hostname
- pip3 install ansible-core==2.14.11 ansible-lint==6.13.1
- ls -ltra /drone/src
# - 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
- ansible-galaxy install -r /drone/src/requirements.yml
- ansible-lint /drone/src/hello.yml
- ansible-playbook -v -i 127.0.0.1, /drone/src/hello.yml

14
requirements.yml Normal file
View File

@ -0,0 +1,14 @@
collections:
- community.general
- ansible.netcommon
- community.vmware
- community.grafana
- community.sops
- galaxyproject.general
- community.sap_install
- community.crypto
- community.digitalocean
- community.mysql
- community.postgresql
- community.docker
- containers.podman