tasks_go_packages.yml 455 B

1234567891011121314151617
  1. ---
  2. - name: "Install Go Packages"
  3. ansible.builtin.set_fact:
  4. packages: "{{ lookup('ansible.builtin.file', '{{ item }}') | trim }}"
  5. with_first_found:
  6. - "files/{{ machine_type }}/{{ use_case }}/go.txt"
  7. - "files/{{ machine_type }}/go.txt"
  8. - "files/go.txt"
  9. - name: "20: Install packages"
  10. become: True
  11. ansible.builtin.command: "go install {{ _go_bin }}"
  12. loop: "{{ packages.splitlines() }}"
  13. loop_control:
  14. loop_var: "_go_bin"