I want to update golang version to the latest in some dev servers, and I wanted to add a task for this. I was thinking of doing something like this-
- name: Upgrade golang
ansible.builtin.yum:
name: 'golang'
state: latest
but Im not sure if this would work, plus I dont think if writing "golang" in the name section is enough. Could you please suggest what this task should look like if I just want to update golang to the latest