From 1df141c48d136c4c401d94ed5e8da0b0dd9f342d Mon Sep 17 00:00:00 2001 From: Tobias Trabelsi Date: Wed, 11 Aug 2021 22:01:04 +0200 Subject: [PATCH] fixed test --- .drone.yml | 12 ++++++------ tasks/main.yml | 3 ++- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/.drone.yml b/.drone.yml index 232358e..e09349a 100644 --- a/.drone.yml +++ b/.drone.yml @@ -54,7 +54,7 @@ steps: image: lerentis/ansible:debian-7 commands: - ansible-playbook -i tests/inventory tests/test-playbook.yml --syntax-check - - ansible-playbook -i tests/inventory tests/test-playbook.yml -e "CI_RUN=true" + - ansible-playbook -i tests/inventory tests/test-playbook.yml -e "ci_run=yes" --skip-tags "daemon" depends_on: - "prepare_workspace" @@ -62,7 +62,7 @@ steps: image: lerentis/ansible:ubuntu-16.04 commands: - ansible-playbook -i tests/inventory tests/test-playbook.yml --syntax-check - - ansible-playbook -i tests/inventory tests/test-playbook.yml -e "CI_RUN=true" + - ansible-playbook -i tests/inventory tests/test-playbook.yml -e "ci_run=yes" --skip-tags "daemon" depends_on: - "prepare_workspace" @@ -70,7 +70,7 @@ steps: image: lerentis/ansible:ubuntu-18.04 commands: - ansible-playbook -i tests/inventory tests/test-playbook.yml --syntax-check - - ansible-playbook -i tests/inventory tests/test-playbook.yml -e "CI_RUN=true" + - ansible-playbook -i tests/inventory tests/test-playbook.yml -e "ci_run=yes" --skip-tags "daemon" depends_on: - "prepare_workspace" @@ -78,7 +78,7 @@ steps: image: lerentis/ansible:ubuntu-20.04 commands: - ansible-playbook -i tests/inventory tests/test-playbook.yml --syntax-check - - ansible-playbook -i tests/inventory tests/test-playbook.yml -e "CI_RUN=true" + - ansible-playbook -i tests/inventory tests/test-playbook.yml -e "ci_run=yes" --skip-tags "daemon" depends_on: - "prepare_workspace" @@ -116,7 +116,7 @@ steps: commands: - pacman -Sy python2 glibc --noconfirm - ansible-playbook -i tests/inventory tests/test-playbook.yml --syntax-check - - ansible-playbook -i tests/inventory tests/test-playbook.yml -e "CI_RUN=true" + - ansible-playbook -i tests/inventory tests/test-playbook.yml -e "ci_run=yes" --skip-tags "daemon" depends_on: - "prepare_workspace" @@ -153,7 +153,7 @@ steps: image: lerentis/ansible:centos-7 commands: - ansible-playbook -i tests/inventory tests/test-playbook.yml --syntax-check - - ansible-playbook -i tests/inventory tests/test-playbook.yml -e "CI_RUN=true" + - ansible-playbook -i tests/inventory tests/test-playbook.yml -e "ci_run=yes" --skip-tags "daemon" depends_on: - "prepare_workspace" diff --git a/tasks/main.yml b/tasks/main.yml index acc2270..bd644a6 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -24,4 +24,5 @@ state: stopped enabled: no with_items: stop_service_list - when: "CI_RUN != true" + tags: [ 'daemon' ] + when: ci_run is not defined