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