# vim: set filetype=yaml.ansible : --- - name: Install go packages become: "{{ install_become }}" environment: GOBIN: "{{ path_bin }}" GOROOT: "{{ path_go }}" PATH: "{{ path_go }}/bin:$PATH" loop: pkg_go loop_control: loop_var: current ansible.builtin.command: creates: "{{ current.bin }}" argv: - go - install - "{{ current.url }}"