+ ansible_become: true
+
+ - name: Add Go to Ubuntu path
+ lineinfile:
+ path: /etc/environment
+ regexp: 'PATH=(["]*)((?!.*?{{gopath}}).*?)(["]*)$'
+ line: 'PATH=\1\2:{{gopath}}\3'
+ backrefs: yes
+ when: ansible_distribution == 'Ubuntu'
+ become: yes