update .drone.yml; add requirements.yml for ansible-galaxy
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
parent
0def5aff55
commit
68fa7ad143
16
.drone.yml
16
.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
|
||||
|
14
requirements.yml
Normal file
14
requirements.yml
Normal 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
|
Loading…
x
Reference in New Issue
Block a user