git.lirion.de

Of git, get, and gud

aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormail_redacted_for_web 2022-06-30 12:28:06 +0200
committermail_redacted_for_web 2022-06-30 12:28:06 +0200
commit4033e160c5e68e18252a3d3e5b86b7f97688dd26 (patch)
treead1dba0a2aa345b024fe602f0bb98fe4127bed4e
parent2891498a5cfe17c397288c658ab3fa98cc82dda6 (diff)
downloaddotfiles-4033e160c5e68e18252a3d3e5b86b7f97688dd26.tar.bz2
Make sure DFDISTRIB is not empty
-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"