From 68fa7ad143c0bdf993ca08485c498ed6e8e208e1 Mon Sep 17 00:00:00 2001 From: Chris Hammer Date: Thu, 16 Nov 2023 22:46:31 -0500 Subject: [PATCH] update .drone.yml; add requirements.yml for ansible-galaxy --- .drone.yml | 16 +++++----------- requirements.yml | 14 ++++++++++++++ 2 files changed, 19 insertions(+), 11 deletions(-) create mode 100644 requirements.yml diff --git a/.drone.yml b/.drone.yml index f8e1915..e35dd90 100644 --- a/.drone.yml +++ b/.drone.yml @@ -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 diff --git a/requirements.yml b/requirements.yml new file mode 100644 index 0000000..20f2cec --- /dev/null +++ b/requirements.yml @@ -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