From 4033e160c5e68e18252a3d3e5b86b7f97688dd26 Mon Sep 17 00:00:00 2001 From: Harald Pfeiffer Date: Thu, 30 Jun 2022 12:28:06 +0200 Subject: Make sure DFDISTRIB is not empty --- distrib.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/distrib.yml b/distrib.yml index 0b1ed89..9782469 100644 --- a/distrib.yml +++ b/distrib.yml @@ -4,6 +4,13 @@ vars: ansible_python_interpreter: "auto_silent" tasks: + - name: "Check that DFDISTRIB is not empty" + assert: + that: + - "lookup('env', 'DFDISTRIB') is defined and lookup('env', 'DFDISTRIB') != ''" + fail_msg: + - "Please set the environment variable DFDISTRIB to an existing inventory entry" + - "where you wish to place the dotfiles" - name: "Create dotfiles.tar.xz" delegate_to: "localhost" connection: "local" -- cgit v1.2.3