diff --git a/.drone.yml b/.drone.yml index cae344e..a738b0d 100644 --- a/.drone.yml +++ b/.drone.yml @@ -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: diff --git a/README.md b/README.md index 4547b35..1caf596 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/tasks/main.yml b/tasks/main.yml index c1791d9..53569f5 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -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 diff --git a/tests/test.yml b/tests/test.yml deleted file mode 100644 index a397ef9..0000000 --- a/tests/test.yml +++ /dev/null @@ -1,5 +0,0 @@ ---- -- hosts: localhost - remote_user: root - roles: - - verify \ No newline at end of file