make sure facts from previous installs are removed before reinstalling a machine
authorChristian Pointner <equinox@realraum.at>
Tue, 16 Jul 2019 20:42:24 +0000 (22:42 +0200)
committerChristian Pointner <equinox@realraum.at>
Tue, 16 Jul 2019 20:42:24 +0000 (22:42 +0200)
ansible/vm-install.sh

index 4e93d2c..4ac4b02 100755 (executable)
@@ -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