--- - hosts: debian user: ansible become_user: root become: yes tasks: - name: update the system apt: upgrade: dist update_cache: yes - name: Remove useless packages from the cache apt: autoclean: yes - name: Remove dependencies that are no longer required apt: autoremove: yes - name: Add acl for user apt: name: "{{ item }}" state: present with_items: - acl - python3-pip