feat: retrigger download when release is changed

This commit is contained in:
Vivian Ta 2024-02-03 22:48:33 -08:00
parent 66318db448
commit 68e9e22b97
2 changed files with 5 additions and 2 deletions

View File

@ -2,7 +2,7 @@
WARNING! this module is experimental
This module downloads the proper files from the RKE2 release specified and names them appropriately for the install script.
This module downloads the proper files from the RKE2 release specified and names them appropriately for the install script. The download can be retriggered again by changing the release var.
## Usage

View File

@ -56,7 +56,10 @@ resource "null_resource" "download" {
for_each = local.files
provisioner "local-exec" {
command = <<-EOT
curl -L -s -o ${abspath("${local.path}/${each.key}")} ${each.value}
curl -L -s > ${abspath("${local.path}/${each.key}")} ${each.value}
EOT
}
triggers = {
release = var.release
}
}