Ansible - Install Nginx on Ubuntu

vi install_nginx.yml
---
- hosts: all
  become: yes
  tasks:
    - name: Install Nginx
      apt:
        name: nginx
        update_cache: yes
ansible-playbook -K install_nginx.yml