From 80547553ad3ec4796eb0135dbcb318abdad0bfac Mon Sep 17 00:00:00 2001 From: "Glenn Y. Rolland" Date: Fri, 31 Dec 2021 13:03:26 +0100 Subject: [PATCH] Protect ansible variables --- files/bashrc.d/70-util-ansible.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/files/bashrc.d/70-util-ansible.sh b/files/bashrc.d/70-util-ansible.sh index d2401df..35d0091 100644 --- a/files/bashrc.d/70-util-ansible.sh +++ b/files/bashrc.d/70-util-ansible.sh @@ -1,4 +1,6 @@ # Disable ansible cowsay -export ANSIBLE_NOCOWS=1 +if hash ansible > /dev/null 2>&1 ; then + export ANSIBLE_NOCOWS=1 +fi