diff options
author | mail_redacted_for_web | 2022-06-30 12:28:06 +0200 |
---|---|---|
committer | mail_redacted_for_web | 2022-06-30 12:28:06 +0200 |
commit | 4033e160c5e68e18252a3d3e5b86b7f97688dd26 (patch) | |
tree | ad1dba0a2aa345b024fe602f0bb98fe4127bed4e | |
parent | 2891498a5cfe17c397288c658ab3fa98cc82dda6 (diff) | |
download | dotfiles-4033e160c5e68e18252a3d3e5b86b7f97688dd26.tar.bz2 |
Make sure DFDISTRIB is not empty
-rw-r--r-- | distrib.yml | 7 |
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" |