summaryrefslogtreecommitdiffstats
path: root/roles/go/tasks
diff options
context:
space:
mode:
authorAhmed Abdelhalim <[email protected]>2025-09-20 20:55:03 +0200
committerAhmed Abdelhalim <[email protected]>2025-09-20 20:55:03 +0200
commit19a7d7053b721a22b805ba7a9daff1cb7a70a630 (patch)
treee5f394ec8e01d66f3aa7e944d356a4bbb1509711 /roles/go/tasks
parent534e7486f3db1f56e9a4f54572c8724c2aca88f4 (diff)
Migrate to the new loop syntax
Diffstat (limited to 'roles/go/tasks')
-rw-r--r--roles/go/tasks/main.yml4
1 files changed, 2 insertions, 2 deletions
diff --git a/roles/go/tasks/main.yml b/roles/go/tasks/main.yml
index 13612f29..6c4f08c8 100644
--- a/roles/go/tasks/main.yml
+++ b/roles/go/tasks/main.yml
@@ -24,7 +24,7 @@
creates: "{{ ansible_env.HOME }}/go/bin/go{{ item }}"
environment:
PATH: "/home/linuxbrew/.linuxbrew/bin:{{ ansible_env.PATH }}"
- with_items: "{{ go_versions }}"
+ loop: "{{ go_versions }}"
when: go_versions | length > 0
- name: "Download and install Go versions"
@@ -34,5 +34,5 @@
creates: "{{ ansible_env.HOME }}/sdk/go{{ item }}/bin/go"
environment:
PATH: "/home/linuxbrew/.linuxbrew/bin:{{ ansible_env.PATH }}"
- with_items: "{{ go_versions }}"
+ loop: "{{ go_versions }}"
when: go_versions | length > 0