From 08826896032bb1cd2b8db9d724ae918e21d30908 Mon Sep 17 00:00:00 2001 From: Patrick Uiterwijk Date: Mon, 23 Jun 2014 21:05:58 +0000 Subject: [PATCH] Error out if rhel version is not specified --- playbooks/sign_and_import.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/playbooks/sign_and_import.yml b/playbooks/sign_and_import.yml index 76fa4e26b5..fcc48cd490 100644 --- a/playbooks/sign_and_import.yml +++ b/playbooks/sign_and_import.yml @@ -23,6 +23,12 @@ - testing: False tasks: + - fail: msg="Please specify rhel version with rhel=6/7" + when: rhel is not defined + + - fail: msg="Please specify rpmdir with rpmdir=..." + when: rpmdir is not defined + - name: Fail if no rpmdir provided fail: msg="No rpmdir provided" when: rpmdir is not defined