install dependency

This commit is contained in:
Tobias Trabelsi 2021-10-05 21:58:08 +02:00
parent d46278a8e5
commit a2891ca4ec
Signed by: lerentis
GPG Key ID: FF0C2839718CAF2E
4 changed files with 8 additions and 31 deletions

View File

@ -1,28 +1,3 @@
---
kind: pipeline
type: kubernetes
name: prepare_workspace
platform:
os: linux
arch: amd64
steps:
- name: prepare_workspace
image: alpine
commands:
- mkdir -p /drone/src/tests/verify
- mv defaults /drone/src/tests/verify/
- mv handlers /drone/src/tests/verify/
- mv meta /drone/src/tests/verify/
- mv tasks /drone/src/tests/verify/
- mv vars /drone/src/tests/verify/
when:
event:
- push
- pull_request
---
kind: pipeline
type: kubernetes
@ -51,6 +26,7 @@ steps:
- name: test-debian7
image: lerentis/ansible:debian-7
commands:
- ansible-galaxy collection install community.general
- ansible-playbook -i tests/inventory tests/test-playbook.yml --syntax-check
- ansible-playbook -i tests/inventory tests/test-playbook.yml -e "ci_run=yes" --skip-tags "daemon"
depends_on:
@ -59,6 +35,7 @@ steps:
- name: test-ubuntu16
image: lerentis/ansible:ubuntu-16.04
commands:
- ansible-galaxy collection install community.general
- ansible-playbook -i tests/inventory tests/test-playbook.yml --syntax-check
- ansible-playbook -i tests/inventory tests/test-playbook.yml -e "ci_run=yes" --skip-tags "daemon"
depends_on:
@ -67,6 +44,7 @@ steps:
- name: test-ubuntu18
image: lerentis/ansible:ubuntu-18.04
commands:
- ansible-galaxy collection install community.general
- ansible-playbook -i tests/inventory tests/test-playbook.yml --syntax-check
- ansible-playbook -i tests/inventory tests/test-playbook.yml -e "ci_run=yes" --skip-tags "daemon"
depends_on:
@ -75,6 +53,7 @@ steps:
- name: test-ubuntu20
image: lerentis/ansible:ubuntu-20.04
commands:
- ansible-galaxy collection install community.general
- ansible-playbook -i tests/inventory tests/test-playbook.yml --syntax-check
- ansible-playbook -i tests/inventory tests/test-playbook.yml -e "ci_run=yes" --skip-tags "daemon"
depends_on:
@ -112,6 +91,7 @@ steps:
image: lerentis/ansible:arch
commands:
- pacman -Sy python2 glibc --noconfirm
- ansible-galaxy collection install community.general
- ansible-playbook -i tests/inventory tests/test-playbook.yml --syntax-check
- ansible-playbook -i tests/inventory tests/test-playbook.yml -e "ci_run=yes" --skip-tags "daemon"
depends_on:
@ -148,6 +128,7 @@ steps:
- name: test-centos7
image: lerentis/ansible:centos-7
commands:
- ansible-galaxy collection install community.general
- ansible-playbook -i tests/inventory tests/test-playbook.yml --syntax-check
- ansible-playbook -i tests/inventory tests/test-playbook.yml -e "ci_run=yes" --skip-tags "daemon"
depends_on:

View File

@ -1,6 +1,8 @@
Verify
=========
[![Build Status](https://drone.uploadfilter24.eu/api/badges/Ansible/verify/status.svg)](https://drone.uploadfilter24.eu/Ansible/verify)
This role will only be used to verify some assumptions and drifts on a host.
Example Playbook

View File

@ -2,7 +2,6 @@
# tasks file for verify
- name: Gather facts on listening ports
become: yes
community.general.listen_ports_facts:
- name: TCP denylist violation

View File

@ -1,5 +0,0 @@
---
- hosts: localhost
remote_user: root
roles:
- verify