From: Christian Pointner Date: Tue, 16 Jul 2019 20:42:24 +0000 (+0200) Subject: make sure facts from previous installs are removed before reinstalling a machine X-Git-Url: https://git.realraum.at/?a=commitdiff_plain;h=1b8fe2ece8a07df5b4b28d95e9beec33efd882dc;p=noc.git make sure facts from previous installs are removed before reinstalling a machine --- diff --git a/ansible/vm-install.sh b/ansible/vm-install.sh index 4e93d2c..4ac4b02 100755 --- a/ansible/vm-install.sh +++ b/ansible/vm-install.sh @@ -15,5 +15,7 @@ shift echo "installing $name with $distro/$codename" echo "" +rm -f ".cache/facts/$name" + echo "######## running the install playbook ########" exec ansible-playbook -e "hostname=$name" -e "install_distro=$distro" -e "install_codename=$codename" $@ $(basename "$0" .sh).yml