- hosts: localhost tasks: - name: Install package apt: name: "{{ name }}" state: present