Ensure debops host function apply to one host/group

This commit is contained in:
gardouille 2018-04-09 09:46:32 +02:00
parent 7efbbd271d
commit 447675b01a
1 changed files with 5 additions and 1 deletions

6
zshrc
View File

@ -316,7 +316,11 @@ function tasec() {
alias deal="debops"
## Limit to a define host/group
function deho() {
debops -l "${ANS_HOST}"
if [ ${ANS_HOST} ]; then
debops -l "${ANS_HOST}"
else
printf '%b' "${MAGENTA}ANS_HOST${RESET} vars is ${REDB}not${RESET} define!\n"
fi
}
## Limit to a define host/group and to a role
function dero() {