- hosts: all tasks: - name: Remove packages apt: name: - postgresql - lava-server - apache2 - lava-tool - linux-image-amd64 state: absent purge: yes