From bc25068db187cab2d1be0fe5d2170b7d65701753 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miroslav=20Such=C3=BD?= Date: Mon, 18 May 2015 15:36:07 +0200 Subject: [PATCH] make this work with --check --- roles/copr/frontend/tasks/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/copr/frontend/tasks/main.yml b/roles/copr/frontend/tasks/main.yml index 877727054a..d4c007049d 100644 --- a/roles/copr/frontend/tasks/main.yml +++ b/roles/copr/frontend/tasks/main.yml @@ -6,7 +6,7 @@ - name: update selinux context for postgress db dir if it's wrong command: "restorecon -vvRF /var/lib/pgsql" - when: "'postgresql_db_t' not in pgsql_ls.stdout " + when: pgsql_ls.stdout is defined and 'postgresql_db_t' not in pgsql_ls.stdout - name: install pkgs for copr-frontend action: yum state=present pkg={{ item }}