Ansible - Install a list of packages on Ubuntu

vi install_packages.yml
---
- hosts: all
  become: yes
  tasks:
    - name: Update apt cache and install some apps
      apt:
        name: "{{ item }}"
        update_cache: yes
      loop:
        - vim
        - curl
        - unzip
        - htop
        - mc
        - screen
        - mtr
        - tmux
        - git
        - build-essential
        - zsh
        - net-tools
        - mlocate
        - cifs-utils
        - nfs-common
        - apt-transport-https
        - ca-certificates
        - software-properties-common
ansible-playbook -K install_packages.yml