diff --git a/main.tf b/main.tf index a5a5225..e66101d 100644 --- a/main.tf +++ b/main.tf @@ -53,6 +53,10 @@ resource "null_resource" "fail2ban_exporter" { "go build -v", "echo '# install fail2ban_exporter'", "install -Dm775 fail2ban-prometheus-exporter /usr/sbin/fail2ban_exporter", + "echo '# clean go cache'", + "go env GOCACHE", + "go clean -modcache", + # # "echo '# enable service fail2ban_exporter'", "install -Dm775 /tmp/fail2ban_exporter.initd /etc/init.d/fail2ban_exporter",