From 0ad372be03cb58948cb11db0669fe9cdef25630d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miroslav=20Such=C3=BD?= Date: Thu, 14 May 2015 16:37:21 +0200 Subject: [PATCH] make it work with --check --- roles/copr/backend/tasks/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/copr/backend/tasks/main.yml b/roles/copr/backend/tasks/main.yml index 252a7d3e8d..c2fe62e1c6 100644 --- a/roles/copr/backend/tasks/main.yml +++ b/roles/copr/backend/tasks/main.yml @@ -178,7 +178,7 @@ - name: update selinux context for results if root folder does not have proper type command: "restorecon -vvRF /var/lib/copr/public_html/" - when: "'copr_data_t' not in public_html_ls.stdout " + when: public_html_ls is defined and 'copr_data_t' not in public_html_ls.stdout - name: install cert to access fed-cloud09 # TODO: remove this when fed-cloud09 receives external cert