---
- name: Install grunt-cli
  npm: name=grunt-cli global=yes
  sudo: yes
---
- name: Install grunt-cli
  npm: name=grunt-cli global=yes
  become: yes
  become_method: sudo

Use become_method instead of deprecated sudo
Use become_method instead of deprecated sudo
