---
- hosts: all
  sudo: yes
  gather_facts: yes
  roles:
    - common
    - install-deps
    - install-app
    - init-conf
    - configure-nginx
    - db-backup
    - firewall

---
- hosts: all
  become: yes
  become_method: sudo
  become_user: root
  gather_facts: yes
  roles:
    - common
    - install-deps
    - install-app
    - init-conf
    - configure-nginx
    - db-backup
    - firewall

Use ansible 2.x syntax for sudo
Use ansible 2.x syntax for sudo
