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
|
type: docker
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: "Ansible Testing: Install required packages and Python modules"
|
- name: Testing Drone CI with a simple Ansible Playbook
|
||||||
image: quay.io/centos/centos:stream9
|
image: gitea.thezengarden.net/podman/images/ansible-dev:latest
|
||||||
commands:
|
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
|
- ls -ltra /drone/src
|
||||||
|
- ansible-galaxy install -r /drone/src/requirements.yml
|
||||||
# - mkdir /opt/test
|
- ansible-lint /drone/src/hello.yml
|
||||||
# - git clone https://gitea.thezengarden.net/chris/drone-test-1.git /opt/test/drone-test-1
|
- ansible-playbook -v -i 127.0.0.1, /drone/src/hello.yml
|
||||||
#
|
|
||||||
# - ansible-lint /opt/test/drone-test-1
|
|
||||||
# - ansible-playbook -v -i 127.0.0.1, /opt/test/drone-test-1/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