git.lirion.de

Of git, get, and gud

aboutsummaryrefslogtreecommitdiffstats
path: root/distrib.yml
diff options
context:
space:
mode:
Diffstat (limited to 'distrib.yml')
-rw-r--r--distrib.yml7
1 files changed, 7 insertions, 0 deletions
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"