--- - hosts: "{{ hosts_servers }}" gather_facts: no tasks: - name: Package Uninstall apt: purge: yes name: "{{ package_name }}" state: absent