From 1b8fe2ece8a07df5b4b28d95e9beec33efd882dc Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Tue, 16 Jul 2019 22:42:24 +0200 Subject: [PATCH] make sure facts from previous installs are removed before reinstalling a machine --- ansible/vm-install.sh | 2 ++ 1 file changed, 2 insertions(+) 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 -- 1.7.10.4