---

- name: Deploy the proxy
  hosts: proxy
  remote_user: root

  roles: 
    - proxy

---

- name: Deploy the proxy
  hosts: proxy
  remote_user: ubuntu
  become: yes
  become_method: sudo

  roles: 
    - proxy

Configure sudo in playbook rather than command line
Configure sudo in playbook rather than command line
